[][src]Struct polyfuse::Context

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

Contextural information about an incoming request.

Methods

impl<'a, W: ?Sized> Context<'a, W>[src]

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 async fn reply_err<'_>(&'_ mut self, error: i32) -> Result<()> where
    W: AsyncWrite + Unpin
[src]

Reply to the kernel with an error code.

pub async fn on_interrupt<'_>(&'_ mut self) -> Interrupt[src]

Register the request with the sesssion and get a signal that will be notified when the request is canceld by the kernel.

Trait Implementations

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

Auto Trait Implementations

impl<'a, W: ?Sized> Send for Context<'a, W> where
    W: Send

impl<'a, W: ?Sized> Sync for Context<'a, W> where
    W: Sync

impl<'a, W: ?Sized> Unpin for Context<'a, W>

impl<'a, W> !UnwindSafe for Context<'a, W>

impl<'a, W> !RefUnwindSafe for Context<'a, W>

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]