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<R, O, T> CopyOnto<ConsecutiveOffsetPairs<R, O>> for T
impl<R, O, T> CopyOnto<ConsecutiveOffsetPairs<R, O>> for T
source§fn copy_onto(
self,
target: &mut ConsecutiveOffsetPairs<R, O>
) -> <ConsecutiveOffsetPairs<R, O> as Region>::Index
fn copy_onto( self, target: &mut ConsecutiveOffsetPairs<R, O> ) -> <ConsecutiveOffsetPairs<R, O> as Region>::Index
Copy self into the target container, returning an index that allows to
look up the corresponding read item.