[−][src]Struct polyfuse::SessionInitializer
Session initializer.
Methods
impl SessionInitializer
[src]
pub fn flags(&mut self) -> &mut CapabilityFlags
[src]
Return a reference to the capability flags.
pub fn max_readahead(&mut self, value: u32) -> &mut Self
[src]
Set the maximum readahead.
pub fn max_write(&mut self, value: u32) -> &mut Self
[src]
Set the maximum size of the write buffer.
Panic
It causes an assertion panic if the setting value is less than the absolute minimum.
pub fn max_background(&mut self, max_background: u16) -> &mut Self
[src]
Return the maximum number of pending background requests.
pub fn congestion_threshold(&mut self, threshold: u16) -> &mut Self
[src]
Set the threshold number of pending background requests that the kernel marks the filesystem as congested.
If the setting value is 0, the value is automatically calculated by using max_background.
Panics
It cause a panic if the setting value is greater than max_background
.
pub fn time_gran(&mut self, time_gran: u32) -> &mut Self
[src]
Set the timestamp resolution supported by the filesystem.
The setting value has the nanosecond unit and should be a power of 10.
The default value is 1.
pub async fn init<'_, I: ?Sized>(self, io: &'_ mut I) -> Result<Session> where
I: AsyncRead + AsyncWrite + Unpin,
[src]
I: AsyncRead + AsyncWrite + Unpin,
Start a new FUSE session.
This function receives an INIT request from the kernel and replies after initializing the connection parameters.
Trait Implementations
impl Default for SessionInitializer
[src]
impl Debug for SessionInitializer
[src]
Auto Trait Implementations
impl Send for SessionInitializer
impl Sync for SessionInitializer
impl Unpin for SessionInitializer
impl UnwindSafe for SessionInitializer
impl RefUnwindSafe for SessionInitializer
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,