Enum linux_api::epoll::EpollCtlOp
source · #[repr(i32)]pub enum EpollCtlOp {
EPOLL_CTL_ADD = 1,
EPOLL_CTL_MOD = 3,
EPOLL_CTL_DEL = 2,
}
Expand description
Epoll control operation, as used with epoll_ctl
.
Variants§
Trait Implementations§
source§impl Clone for EpollCtlOp
impl Clone for EpollCtlOp
source§fn clone(&self) -> EpollCtlOp
fn clone(&self) -> EpollCtlOp
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for EpollCtlOp
impl Debug for EpollCtlOp
source§impl From<EpollCtlOp> for i32
impl From<EpollCtlOp> for i32
source§fn from(enum_value: EpollCtlOp) -> Self
fn from(enum_value: EpollCtlOp) -> Self
Converts to this type from the input type.
source§impl PartialEq for EpollCtlOp
impl PartialEq for EpollCtlOp
source§impl TryFrom<i32> for EpollCtlOp
impl TryFrom<i32> for EpollCtlOp
source§type Error = TryFromPrimitiveError<EpollCtlOp>
type Error = TryFromPrimitiveError<EpollCtlOp>
The type returned in the event of a conversion error.
source§impl TryFromPrimitive for EpollCtlOp
impl TryFromPrimitive for EpollCtlOp
type Primitive = i32
type Error = TryFromPrimitiveError<EpollCtlOp>
const NAME: &'static str = "EpollCtlOp"
fn try_from_primitive( number: Self::Primitive, ) -> Result<Self, TryFromPrimitiveError<Self>>
impl Copy for EpollCtlOp
impl Eq for EpollCtlOp
impl StructuralPartialEq for EpollCtlOp
Auto Trait Implementations§
impl Freeze for EpollCtlOp
impl RefUnwindSafe for EpollCtlOp
impl Send for EpollCtlOp
impl Sync for EpollCtlOp
impl Unpin for EpollCtlOp
impl UnwindSafe for EpollCtlOp
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)