[−][src]Struct declarative_dataflow::ShutdownHandle
A wrapper around a vector of ShutdownButton's. Ensures they will be pressed on dropping the handle.
Methods
impl ShutdownHandle
[src]
pub fn empty() -> Self
[src]
Returns an empty shutdown handle.
pub fn from_button<T: Timestamp>(
button: ShutdownButton<CapabilitySet<T>>
) -> Self
[src]
button: ShutdownButton<CapabilitySet<T>>
) -> Self
Wraps a single shutdown button into a shutdown handle.
pub fn add_button<T: Timestamp>(
&mut self,
button: ShutdownButton<CapabilitySet<T>>
)
[src]
&mut self,
button: ShutdownButton<CapabilitySet<T>>
)
Adds another shutdown button to this handle. This button will then also be pressed, whenever the handle is shut down or dropped.
pub fn merge_with(&mut self, other: Self)
[src]
Combines the buttons of another handle into self.
pub fn merge(left: Self, right: Self) -> Self
[src]
Combines two shutdown handles into a single one, which will control both.
Trait Implementations
impl Drop for ShutdownHandle
[src]
Auto Trait Implementations
impl !Send for ShutdownHandle
impl !Sync for ShutdownHandle
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,