pub struct Request<'a> { /* private fields */ }Expand description
FUSE request
Implementations§
Source§impl<'a> Request<'a>
impl<'a> Request<'a>
Sourcepub fn new(
bytes: &'a [u8],
proto_version: ProtoVersion,
) -> Result<Self, DeserializeError>
pub fn new( bytes: &'a [u8], proto_version: ProtoVersion, ) -> Result<Self, DeserializeError>
Build FUSE request
Sourcepub const fn unique(&self) -> u64
pub const fn unique(&self) -> u64
Returns the unique identifier of this request.
The FUSE kernel driver assigns a unique id to every concurrent request. This allows to distinguish between multiple concurrent requests. The unique id of a request may be reused in later requests after it has completed.
Sourcepub const fn nodeid(&self) -> u64
pub const fn nodeid(&self) -> u64
Returns the node ID of the inode this request is targeted to.
Sourcepub const fn uid(&self) -> u32
pub const fn uid(&self) -> u32
Returns the UID that the process that triggered this request runs under.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Request<'a>
impl<'a> RefUnwindSafe for Request<'a>
impl<'a> Send for Request<'a>
impl<'a> Sync for Request<'a>
impl<'a> Unpin for Request<'a>
impl<'a> UnwindSafe for Request<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more