Crate async_gate

Source

Re-exports§

pub use Gateway::Lowered;
pub use Gateway::Raised;

Structs§

BeforeGateDropped
The gate was dropped, but we still know what value it had before dropping
Gate
A gate that can be checked if is_raised or is_lowered immediately, or can be waited on to be raised or lowered.
GateDropped
The gate was dropped, so raising or lowering it achieves nothing
Lever
A lever that can raise and lower the gate it’s associated with
LeverDroppedWhileLowered
The lever was dropped while the gate was raised, so the gate will never be lowered again
LeverDroppedWhileRaised
The lever was dropped while the gate was raised, so the gate will never be lowered again
ParseGatewayError

Enums§

Gateway

Functions§

new
Create a Gate in the given initial state. The Lever that it is returned with can raise and lower the gate.
new_lowered
Create a Gate that is initially lowered. The Lever that it is returned with can raise and lower the gate.
new_raised
Create a Gate that is initially raised. The Lever that it is returned with can raise and lower the gate.