#[repr(u8)]pub enum CqeOpcode {
RespondRegular = 0,
RespondWithFd = 1,
SendFevent = 2,
ObtainFd = 3,
RespondWithMultipleFds = 4,
RespondAndNotifyOnDetach = 5,
}Variants§
RespondRegular = 0
RespondWithFd = 1
SendFevent = 2
ObtainFd = 3
RespondWithMultipleFds = 4
RespondAndNotifyOnDetach = 5
[SchemeAsync::on_close] and [SchemeSync::on_close] are only called when the last file
descriptor referring to the file description is closed. To implement traditional POSIX
advisory file locking, CqeOpcode::RespondAndNotifyOnDetach is used to notify the scheme
by sending a [RequestKind::OnDetach] request the next time the file description is
“detached” from a file descriptor. Not done by default to avoid unnecessary IPC.
Implementations§
Trait Implementations§
impl Copy for CqeOpcode
impl Eq for CqeOpcode
impl StructuralPartialEq for CqeOpcode
Auto Trait Implementations§
impl Freeze for CqeOpcode
impl RefUnwindSafe for CqeOpcode
impl Send for CqeOpcode
impl Sync for CqeOpcode
impl Unpin for CqeOpcode
impl UnsafeUnpin for CqeOpcode
impl UnwindSafe for CqeOpcode
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