pub struct SuccessionDesk { /* private fields */ }Expand description
Holds at most one ask. A second ask replaces the first, reason included: the run is replaced once whatever it says, and the last reason it gave is the one worth keeping.
Implementations§
Source§impl SuccessionDesk
impl SuccessionDesk
pub fn new() -> SuccessionDesk
pub fn ask(&mut self, succession: Succession)
pub fn asked(&self) -> Option<&Succession>
Sourcepub fn take(&mut self) -> Option<Succession>
pub fn take(&mut self) -> Option<Succession>
Takes the ask, leaving the desk empty. Called once when the run concludes.
Trait Implementations§
Source§impl Debug for SuccessionDesk
impl Debug for SuccessionDesk
Auto Trait Implementations§
impl Freeze for SuccessionDesk
impl RefUnwindSafe for SuccessionDesk
impl Send for SuccessionDesk
impl Sync for SuccessionDesk
impl Unpin for SuccessionDesk
impl UnsafeUnpin for SuccessionDesk
impl UnwindSafe for SuccessionDesk
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