Enum calloop::Mode[][src]

pub enum Mode {
    OneShot,
    Level,
    Edge,
}
Expand description

Possible modes for registering a file descriptor

Variants

OneShot

Single event generation

This FD will be disabled as soon as it has generated one event.

The user will need to use LoopHandle::update() to re-enable it if desired.

Level

Level-triggering

This FD will report events on every poll as long as the requested interests are available. If the same FD is inserted in multiple event loops, all of them are notified of readiness.

Edge

Edge-triggering

This FD will report events only when it gains one of the requested interests. it must thus be fully processed befor it’ll generate events again. If the same FD is inserted on multiple event loops, it may be that not all of them are notified of readiness, and not necessarily always the same(s) (at least one is notified).

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. 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 resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

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.