Struct context_rs::well_known::ShutdownReceiver
source · pub struct ShutdownReceiver(_);
Available on crate feature
std
only.Implementations§
source§impl ShutdownReceiver
impl ShutdownReceiver
pub async fn from_context() -> Self
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 moresource§impl From<ShutdownReceiver> for ShutdownProvider
impl From<ShutdownReceiver> for ShutdownProvider
source§fn from(value: ShutdownReceiver) -> Self
fn from(value: ShutdownReceiver) -> Self
Converts to this type from the input type.