pub struct LaneGate { /* private fields */ }Expand description
A first-come-first-served readers-writer gate (LaneGate): parallel calls share it, an exclusive call holds it
alone, and a waiting exclusive call keeps later calls from overtaking it. Tickets are granted in LaneGate::pump;
the caller holds the lock that guards the gate and waits on its condition variable.
Implementations§
Source§impl LaneGate
impl LaneGate
Trait Implementations§
Auto Trait Implementations§
impl Forget for LaneGate
impl Freeze for LaneGate
impl Move for LaneGate
impl RefUnwindSafe for LaneGate
impl Send for LaneGate
impl Sync for LaneGate
impl Unpin for LaneGate
impl UnsafeUnpin for LaneGate
impl UnwindSafe for LaneGate
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