Request

Struct Request 

Source
pub struct Request<'o, O: Operation<'o>> { /* private fields */ }

Implementations§

Source§

impl<'o, O: Operation<'o>> Request<'o, O>

Source

pub fn ino(&self) -> Ino

Source

pub fn generation(&self) -> u64

Source

pub fn uid(&self) -> Uid

Source

pub fn gid(&self) -> Gid

Source

pub fn pid(&self) -> Pid

Source§

impl<'o, O: Operation<'o>> Request<'o, O>

Source

pub fn name(&self) -> &OsStr
where O: RequestName<'o>,

Source

pub fn size(&self) -> u32
where O: RequestSize<'o>,

Source

pub fn offset(&self) -> u64
where O: RequestOffset<'o>,

Source

pub fn handle(&self) -> u64
where O: RequestHandle<'o>,

Source

pub fn data(&self) -> &[u8]
where O: RequestData<'o>,

Source

pub fn flags(&self) -> O::Flags
where O: RequestFlags<'o>,

Source

pub fn mode(&self) -> Mode
where O: RequestMode<'o>,

Source

pub fn umask(&self) -> Mode
where O: RequestMode<'o>,

Source

pub fn forget_list(&self) -> impl '_ + Iterator<Item = (Ino, u64)>
where O: RequestForget<'o>,

Source

pub fn device(&self) -> u32
where O: RequestDevice<'o>,

Source

pub fn target(&self) -> &OsStr
where O: RequestTarget<'o>,

Source

pub fn source_ino(&self) -> Ino
where O: RequestLink<'o>,

Source

pub fn block(&self) -> u64
where O: RequestBlock<'o>,

Source

pub fn block_size(&self) -> u32
where O: RequestBlock<'o>,

Auto Trait Implementations§

§

impl<'o, O> Freeze for Request<'o, O>
where <O as Operation<'o>>::RequestBody: Freeze,

§

impl<'o, O> RefUnwindSafe for Request<'o, O>
where <O as Operation<'o>>::RequestBody: RefUnwindSafe,

§

impl<'o, O> Send for Request<'o, O>
where <O as Operation<'o>>::RequestBody: Send,

§

impl<'o, O> Sync for Request<'o, O>
where <O as Operation<'o>>::RequestBody: Sync,

§

impl<'o, O> Unpin for Request<'o, O>
where <O as Operation<'o>>::RequestBody: Unpin,

§

impl<'o, O> UnwindSafe for Request<'o, O>
where <O as Operation<'o>>::RequestBody: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.