[−][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 Unpin for ShutdownHandle
impl !Sync for ShutdownHandle
impl !UnwindSafe for ShutdownHandle
impl !RefUnwindSafe for ShutdownHandle
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> 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, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,