Struct fuse_backend_rs::transport::FuseChannel
source · pub struct FuseChannel { /* private fields */ }
Expand description
A fuse channel abstraction.
Each session can hold multiple channels.
Implementations§
source§impl FuseChannel
impl FuseChannel
sourcepub fn get_request(&mut self) -> Result<Option<(Reader<'_>, FuseDevWriter<'_>)>>
pub fn get_request(&mut self) -> Result<Option<(Reader<'_>, FuseDevWriter<'_>)>>
Get next available FUSE request from the underlying fuse device file.
Returns:
- Ok(None): signal has pending on the exiting event channel
- Ok(Some((reader, writer))): reader to receive request and writer to send reply
- Err(e): error message
Auto Trait Implementations§
impl Freeze for FuseChannel
impl RefUnwindSafe for FuseChannel
impl Send for FuseChannel
impl Sync for FuseChannel
impl Unpin for FuseChannel
impl UnwindSafe for FuseChannel
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