Struct differential_dataflow::operators::arrange::agent::ShutdownButton
source · pub struct ShutdownButton<T> { /* private fields */ }
Expand description
Wrapper than can drop shared references.
Implementations§
source§impl<T> ShutdownButton<T>
impl<T> ShutdownButton<T>
sourcepub fn new(reference: Rc<RefCell<Option<T>>>, activator: Activator) -> Self
pub fn new(reference: Rc<RefCell<Option<T>>>, activator: Activator) -> Self
Creates a new ShutdownButton.
sourcepub fn press_on_drop(self) -> ShutdownDeadmans<T>
pub fn press_on_drop(self) -> ShutdownDeadmans<T>
Hotwires the button to one that is pressed if dropped.
Auto Trait Implementations§
impl<T> Freeze for ShutdownButton<T>
impl<T> !RefUnwindSafe for ShutdownButton<T>
impl<T> !Send for ShutdownButton<T>
impl<T> !Sync for ShutdownButton<T>
impl<T> Unpin for ShutdownButton<T>
impl<T> !UnwindSafe for ShutdownButton<T>
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
source§impl<'a, S, T> Semigroup<&'a S> for Twhere
T: Semigroup<S>,
impl<'a, S, T> Semigroup<&'a S> for Twhere
T: Semigroup<S>,
source§fn plus_equals(&mut self, rhs: &&'a S)
fn plus_equals(&mut self, rhs: &&'a S)
The method of
std::ops::AddAssign
, for types that do not implement AddAssign
.