pub struct ChainHalt { /* private fields */ }Expand description
The verdict a writer shares with the proof of its history: once set it stays, and it carries the reason every refused write repeats.
Implementations§
Source§impl ChainHalt
impl ChainHalt
Sourcepub fn awaiting_proof() -> ChainHalt
pub fn awaiting_proof() -> ChainHalt
A halt that refuses every append until a verdict is set.
Sourcepub fn trip(&self, reason: AxError)
pub fn trip(&self, reason: AxError)
Stop taking new work. The first verdict wins; a later reason is dropped, because the chain broke where the first proof said.
Sourcepub fn await_verdict(&self)
pub fn await_verdict(&self)
Blocks until there is a verdict; returns at once for a halt that admits before one.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ChainHalt
impl RefUnwindSafe for ChainHalt
impl Send for ChainHalt
impl Sync for ChainHalt
impl Unpin for ChainHalt
impl UnsafeUnpin for ChainHalt
impl UnwindSafe for ChainHalt
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