pub struct FuseSession { /* private fields */ }Expand description
FUSE session state.
Manages the FUSE protocol session including initialization handshake and feature negotiation.
Implementations§
Source§impl FuseSession
impl FuseSession
Sourcepub const fn new() -> FuseSession
pub const fn new() -> FuseSession
Creates a new FUSE session with default settings.
Sourcepub fn is_initialized(&self) -> bool
pub fn is_initialized(&self) -> bool
Returns whether the session is initialized.
Sourcepub const fn max_readahead(&self) -> u32
pub const fn max_readahead(&self) -> u32
Returns the maximum readahead size.
Sourcepub fn handle_init(&mut self, request: &[u8]) -> Result<Vec<u8>, VirtioError>
pub fn handle_init(&mut self, request: &[u8]) -> Result<Vec<u8>, VirtioError>
Handles FUSE_INIT request and returns the response.
This negotiates the protocol version and features with the guest driver.
Trait Implementations§
Source§impl Debug for FuseSession
impl Debug for FuseSession
Source§impl Default for FuseSession
impl Default for FuseSession
Source§fn default() -> FuseSession
fn default() -> FuseSession
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !Freeze for FuseSession
impl RefUnwindSafe for FuseSession
impl Send for FuseSession
impl Sync for FuseSession
impl Unpin for FuseSession
impl UnsafeUnpin for FuseSession
impl UnwindSafe for FuseSession
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more