[][src]Struct polyfuse_tokio::Builder

pub struct Builder { /* fields omitted */ }

A builder for Server.

Methods

impl Builder[src]

pub fn session(&mut self) -> &mut SessionInitializer[src]

Return a reference to the session initializer.

pub fn pool_size(&mut self, amt: usize) -> &mut Self[src]

Set the pool size of request contexts.

The default value is 1024.

Panic

The provided value is less than initial_pooled_contexts.

pub fn initial_pooled_contexts(&mut self, amt: usize) -> &mut Self[src]

Set the number of request contexts stored in the pool before the start of the main loop.

By default, the pool of request contexts does not contain any entries.

Panic

The provided value is greater than pool_size.

pub async fn mount<'a>(
    &'a self,
    mountpoint: impl AsRef<Path>,
    mountopts: &'a [&'a OsStr]
) -> Result<Server>
[src]

Build a Server mounted on the specified path.

Trait Implementations

impl Debug for Builder[src]

impl Default for Builder[src]

Auto Trait Implementations

impl RefUnwindSafe for Builder

impl Send for Builder

impl Sync for Builder

impl Unpin for Builder

impl UnwindSafe for Builder

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.