pub struct PathStat<S: AsFd> { /* private fields */ }Expand description
A fused PathStat operation
Implementations§
Trait Implementations§
Source§impl<S: AsFd> OpCode for PathStat<S>
impl<S: AsFd> OpCode for PathStat<S>
Source§type Control = <PathStat<S> as OpCode>::Control
type Control = <PathStat<S> as OpCode>::Control
Type that contains self-references and other needed info during the
operation
Source§unsafe fn init(&mut self, ctrl: &mut <Self as PollOpCode>::Control)
unsafe fn init(&mut self, ctrl: &mut <Self as PollOpCode>::Control)
Initialize the control Read more
Source§fn pre_submit(
&mut self,
control: &mut <Self as PollOpCode>::Control,
) -> Result<Decision>
fn pre_submit( &mut self, control: &mut <Self as PollOpCode>::Control, ) -> Result<Decision>
Perform the operation before submit, and return
Decision to
indicate whether submitting the operation to polling is required.Source§fn op_type(
&mut self,
control: &mut <Self as PollOpCode>::Control,
) -> Option<OpType>
fn op_type( &mut self, control: &mut <Self as PollOpCode>::Control, ) -> Option<OpType>
Get the operation type when an event is occurred.
Source§fn operate(
&mut self,
control: &mut <Self as PollOpCode>::Control,
) -> Poll<Result<usize>>
fn operate( &mut self, control: &mut <Self as PollOpCode>::Control, ) -> Poll<Result<usize>>
Perform the operation after received corresponding
event. If this operation is blocking, the return value should be
Poll::Ready.Source§impl<S: AsFd> OpCode for PathStat<S>
impl<S: AsFd> OpCode for PathStat<S>
Source§type Control = <PathStat<S> as OpCode>::Control
type Control = <PathStat<S> as OpCode>::Control
Type that contains self-references and other needed info during the
operation
Source§unsafe fn init(&mut self, ctrl: &mut <Self as IourOpCode>::Control)
unsafe fn init(&mut self, ctrl: &mut <Self as IourOpCode>::Control)
Initialize the control Read more
Source§fn create_entry(
&mut self,
control: &mut <Self as IourOpCode>::Control,
) -> OpEntry
fn create_entry( &mut self, control: &mut <Self as IourOpCode>::Control, ) -> OpEntry
Create submission entry.
Source§fn create_entry_fallback(
&mut self,
control: &mut <Self as IourOpCode>::Control,
) -> OpEntry
fn create_entry_fallback( &mut self, control: &mut <Self as IourOpCode>::Control, ) -> OpEntry
Create submission entry for fallback. This method will only be
called if
create_entry returns an entry with unsupported
opcode.Source§fn call_blocking(
&mut self,
control: &mut <Self as IourOpCode>::Control,
) -> Result<usize>
fn call_blocking( &mut self, control: &mut <Self as IourOpCode>::Control, ) -> Result<usize>
Call the operation in a blocking way. This method will be called if Read more
Source§unsafe fn set_result(
&mut self,
control: &mut <Self as IourOpCode>::Control,
result: &Result<usize>,
extra: &Extra,
)
unsafe fn set_result( &mut self, control: &mut <Self as IourOpCode>::Control, result: &Result<usize>, extra: &Extra, )
Set the result when it completes.
The operation stores the result and is responsible to release it if
the operation is cancelled. Read more
Source§unsafe fn push_multishot(
&mut self,
control: &mut <Self as IourOpCode>::Control,
result: Result<usize>,
extra: Extra,
)
unsafe fn push_multishot( &mut self, control: &mut <Self as IourOpCode>::Control, result: Result<usize>, extra: Extra, )
Push a multishot result to the inner queue. Read more
Source§fn pop_multishot(
&mut self,
control: &mut <Self as IourOpCode>::Control,
) -> Option<BufResult<usize, Extra>>
fn pop_multishot( &mut self, control: &mut <Self as IourOpCode>::Control, ) -> Option<BufResult<usize, Extra>>
Pop a multishot result from the inner queue.
Auto Trait Implementations§
impl<S> Freeze for PathStat<S>where
S: Freeze,
impl<S> RefUnwindSafe for PathStat<S>where
S: RefUnwindSafe,
impl<S> Send for PathStat<S>where
S: Send,
impl<S> Sync for PathStat<S>where
S: Sync,
impl<S> Unpin for PathStat<S>where
S: Unpin,
impl<S> UnsafeUnpin for PathStat<S>where
S: UnsafeUnpin,
impl<S> UnwindSafe for PathStat<S>where
S: UnwindSafe,
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