Struct calloop::generic::Generic[][src]

pub struct Generic<F: AsRawFd> {
    pub file: F,
    pub interest: Interest,
    pub mode: Mode,
    // some fields omitted
}
Expand description

A generic event source wrapping a FD-backed type

Fields

file: F

The wrapped FD-backed type

interest: Interest

The programmed interest

mode: Mode

The programmed mode

Implementations

Wrap a FD-backed type into a Generic event source

Unwrap the Generic source to retrieve the underlying type

Wrap a raw file descriptor into a Generic event source

Trait Implementations

Formats the value using the given formatter. Read more

The type of events generated by your source.

Some metadata of your event source Read more

The return type of the user callback Read more

Process any relevant events Read more

Register yourself to this poll instance Read more

Re-register your file descriptors Read more

Unregister your file descriptors Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.