[][src]Struct polyfuse::Context

pub struct Context<'cx, T: ?Sized> { /* fields omitted */ }

The context of FUSE callbacks.

Methods

impl<'cx, T: ?Sized> Context<'cx, T>[src]

pub fn unique(&self) -> u64[src]

Return the unique ID of the request.

pub fn uid(&self) -> u32[src]

Return the user ID of the calling process.

pub fn gid(&self) -> u32[src]

Return the group ID of the calling process.

pub fn pid(&self) -> u32[src]

Return the process ID of the calling process.

pub fn reader(&mut self) -> impl Reader + '_ where
    T: Reader + Unpin
[src]

Return the instance of Reader for reading the rest of the request message.

pub async fn reply<'_, R>(&'_ mut self, reply: R) -> Result<()> where
    T: Writer + Unpin,
    R: Reply
[src]

Reply to the kernel with an arbitrary bytes of data.

pub async fn reply_err<'_>(&'_ mut self, error: i32) -> Result<()> where
    T: Writer + Unpin
[src]

Reply to the kernel with an error code.

pub fn replied(&self) -> bool[src]

Return whether the writer has already sent a reply to the kernel or not.

Trait Implementations

impl<'_, T: ?Sized> Debug for Context<'_, T>[src]

Auto Trait Implementations

impl<'cx, T: ?Sized> RefUnwindSafe for Context<'cx, T> where
    T: RefUnwindSafe

impl<'cx, T: ?Sized> Send for Context<'cx, T> where
    T: Send

impl<'cx, T: ?Sized> Sync for Context<'cx, T> where
    T: Sync

impl<'cx, T: ?Sized> Unpin for Context<'cx, T>

impl<'cx, T> !UnwindSafe for Context<'cx, T>

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.