pub struct GateStart { /* private fields */ }Expand description
The policy a gate starts under, and the change it must apply before it admits any slot, if there is one (see the module docs, “A new tenure”).
The pending change is part of the start rather than something a
caller may add: initial_gate_policy returns the two together and
the gate takes the start whole and consumes the change, so the
runtime cannot hand the gate the lineage’s policy and drop the
transition to it on the way. The fields are crate-private for the
same reason: outside the crate a start can only be
settled, the start of a gate with no lineage
change to apply (a harness driving the response stage by hand), so
no caller can build one that names the lineage’s newest policy as in
force.
Implementations§
Trait Implementations§
impl Copy for GateStart
impl Eq for GateStart
impl StructuralPartialEq for GateStart
Auto Trait Implementations§
impl Freeze for GateStart
impl RefUnwindSafe for GateStart
impl Send for GateStart
impl Sync for GateStart
impl Unpin for GateStart
impl UnsafeUnpin for GateStart
impl UnwindSafe for GateStart
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