Skip to content
Snippets Groups Projects
Verified Commit 2c4a8539 authored by Jacob Lorentzon's avatar Jacob Lorentzon
Browse files

Add context_id function to Request.

parent afd3fa57
No related branches found
No related tags found
No related merge requests found
......@@ -81,6 +81,9 @@ use core::mem::size_of;
pub struct Request(Packet);
impl Request {
pub fn context_id(&self) -> usize {
self.0.pid
}
pub fn handle_scheme(mut self, scheme: &impl Scheme) -> Response {
unsafe {
scheme.handle(&mut self.0);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment