[][src]Struct polyfuse::Session

pub struct Session { /* fields omitted */ }

FUSE session driver.

Methods

impl Session[src]

pub fn connection_info(&self) -> &ConnectionInfo[src]

Returns the information about the FUSE connection.

pub fn buffer_size(&self) -> usize[src]

Returns the buffer size required to receive one request.

pub async fn receive<'_, '_, '_, '_, R: ?Sized, B: ?Sized>(
    &'_ self,
    reader: &'_ mut R,
    buf: &'_ mut B,
    notifier: &'_ Notifier<B::Data>
) -> Result<()> where
    R: AsyncRead + Unpin,
    B: Buffer
[src]

Receive one or more requests from the kernel.

pub async fn process<'_, '_, '_, '_, F: ?Sized, W: ?Sized, B: ?Sized>(
    &'_ self,
    fs: &'_ F,
    buf: &'_ mut B,
    writer: &'_ mut W
) -> Result<()> where
    F: Filesystem<B::Data>,
    W: AsyncWrite + Send + Unpin,
    B: Buffer,
    B::Data: Send
[src]

Process an incoming request using the specified filesystem operations.

Trait Implementations

impl Debug for Session[src]

Auto Trait Implementations

impl Send for Session

impl Sync for Session

impl Unpin for Session

impl !UnwindSafe for Session

impl !RefUnwindSafe for Session

Blanket Implementations

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

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

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

type Error = !

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.

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

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

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