pub struct Request<'a> { /* private fields */ }
Expand description
Request data structure
Implementations§
source§impl<'a> Request<'a>
impl<'a> Request<'a>
sourcepub fn new(
ch: ChannelSender,
data: &'a [u8]
) -> Result<Request<'a>, RequestError<'a>>
pub fn new( ch: ChannelSender, data: &'a [u8] ) -> Result<Request<'a>, RequestError<'a>>
Create a new request from the given data
sourcepub fn dispatch<FS: Filesystem>(&self, se: &mut Session<FS>)
pub fn dispatch<FS: Filesystem>(&self, se: &mut Session<FS>)
Dispatch request to the given filesystem. This calls the appropriate filesystem operation method for the request and sends back the returned reply to the kernel
Trait Implementations§
Auto Trait Implementations§
impl<'a> RefUnwindSafe for Request<'a>
impl<'a> Send for Request<'a>
impl<'a> Sync for Request<'a>
impl<'a> Unpin for Request<'a>
impl<'a> UnwindSafe for Request<'a>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more