[−][src]Struct polyfuse_tokio::Builder
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]
&'a self,
mountpoint: impl AsRef<Path>,
mountopts: &'a [&'a OsStr]
) -> Result<Server>
Build a Server
mounted on the specified path.
Trait Implementations
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]
T: 'static + ?Sized,
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> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
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>,