[−][src]Struct polyfuse::Context
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]
T: Reader + Unpin,
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]
T: Writer + Unpin,
R: Reply,
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]
T: Writer + Unpin,
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
Auto Trait Implementations
impl<'cx, T: ?Sized> RefUnwindSafe for Context<'cx, T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
impl<'cx, T: ?Sized> Send for Context<'cx, T> where
T: Send,
T: Send,
impl<'cx, T: ?Sized> Sync for Context<'cx, T> where
T: Sync,
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]
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>,