Enum rhook::Hook[][src]

#[non_exhaustive]pub enum Hook {
    Open(&'static str),
    OpenDir(&'static str),
    Recv(&'static str),
    Read(&'static str),
}

libc hooks enum

Variants (Non-exhaustive)

Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Open(&'static str)

fn open(path: *const c_char, oflags: c_int) -> Option<c_int>,

OpenDir(&'static str)

fn opendir(dirname: *const c_char) -> *mut DIR

Recv(&'static str)

fn recv( socket: c_int, buf: *mut c_void, len: size_t, flags: c_int,) -> ssize_t

Read(&'static str)

fn read( fd: c_int, buf: *mut c_void, count: size_t) -> ssize_t

Trait Implementations

impl Eq for Hook[src]

impl Hash for Hook[src]

impl PartialEq<Hook> for Hook[src]

impl StructuralEq for Hook[src]

impl StructuralPartialEq for Hook[src]

Auto Trait Implementations

impl RefUnwindSafe for Hook

impl Send for Hook

impl Sync for Hook

impl Unpin for Hook

impl UnwindSafe for Hook

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.