[−][src]Struct polyfuse::Context
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]
W: AsyncWrite + Unpin,
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
Auto Trait Implementations
impl<'a, W: ?Sized> Send for Context<'a, W> where
W: Send,
W: Send,
impl<'a, W: ?Sized> Sync for Context<'a, W> where
W: Sync,
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]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
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> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,