[][src]Struct declarative_dataflow::ShutdownHandle

pub struct ShutdownHandle { /* fields omitted */ }

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]

Wraps a single shutdown button into a shutdown handle.

pub fn add_button<T: Timestamp>(
    &mut self,
    button: ShutdownButton<CapabilitySet<T>>
)
[src]

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

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.