Struct context_rs::well_known::ShutdownSender
source · pub struct ShutdownSender(_);
Available on crate feature
std
only.Expand description
The sending side of a shutdown handler
Implementations§
source§impl ShutdownSender
impl ShutdownSender
sourcepub fn receiver(self) -> ShutdownReceiver
pub fn receiver(self) -> ShutdownReceiver
Turns this ShutdownSender
into a ShutdownReceiver
Trait Implementations§
source§impl Clone for ShutdownSender
impl Clone for ShutdownSender
source§fn clone(&self) -> ShutdownSender
fn clone(&self) -> ShutdownSender
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Default for ShutdownSender
impl Default for ShutdownSender
source§fn default() -> ShutdownSender
fn default() -> ShutdownSender
Returns the “default value” for a type. Read more