Struct taple_core::TapleShutdownManager
source · pub struct TapleShutdownManager { /* private fields */ }
Expand description
Structure that allows a signal to be emitted to stop the TAPLE node. It can also be used to detect internal shutdown signals, which occur when an internal error occurs.
Implementations§
source§impl TapleShutdownManager
impl TapleShutdownManager
sourcepub fn get_raw_receiver(&self) -> Receiver<()>
pub fn get_raw_receiver(&self) -> Receiver<()>
Allows to obtain the underlying channel to receive messages
sourcepub fn get_raw_sender(&self) -> Sender<()>
pub fn get_raw_sender(&self) -> Sender<()>
Allows to obtain the underlying channel to send messages
sourcepub async fn wait_for_shutdown(self)
pub async fn wait_for_shutdown(self)
Wait until a shutdown signal is received from the node.
Auto Trait Implementations§
impl !RefUnwindSafe for TapleShutdownManager
impl Send for TapleShutdownManager
impl Sync for TapleShutdownManager
impl Unpin for TapleShutdownManager
impl !UnwindSafe for TapleShutdownManager
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more