Struct context_rs::well_known::ShutdownReceiver
source · pub struct ShutdownReceiver(_);
Available on crate feature
std
only.Expand description
The receiving side of a shutdown handler
Implementations§
source§impl ShutdownReceiver
impl ShutdownReceiver
sourcepub async fn from_context() -> Self
pub async fn from_context() -> Self
Get the currently registered shutdown handler from the context
sourcepub async fn wait_for_signal(&self)
pub async fn wait_for_signal(&self)
Waits for the shutdown signal
Trait Implementations§
source§impl Clone for ShutdownReceiver
impl Clone for ShutdownReceiver
source§fn clone(&self) -> ShutdownReceiver
fn clone(&self) -> ShutdownReceiver
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 more