[][src]Struct polyfuse::SessionInitializer

pub struct SessionInitializer { /* fields omitted */ }

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 try_init<'_, '_, I: ?Sized>(
    &'_ self,
    io: &'_ mut I
) -> Result<Option<Session>> where
    I: Reader + Writer + Unpin
[src]

Handle a FUSE_INIT request and create a new Session.

Trait Implementations

impl Debug for SessionInitializer[src]

impl Default for SessionInitializer[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.