pub struct SignalReceiver { /* private fields */ }Expand description
Receiver end of the signal delivery channel.
Implementations§
Source§impl SignalReceiver
impl SignalReceiver
Sourcepub fn recv(&self) -> Result<CompositeSignal, RecvError>
pub fn recv(&self) -> Result<CompositeSignal, RecvError>
Receives the next signal (blocking).
Sourcepub fn try_recv(&self) -> Result<CompositeSignal, TryRecvError>
pub fn try_recv(&self) -> Result<CompositeSignal, TryRecvError>
Tries to receive a signal without blocking.
Sourcepub fn drain(&self) -> Vec<CompositeSignal>
pub fn drain(&self) -> Vec<CompositeSignal>
Drains all pending signals into a Vec.
Auto Trait Implementations§
impl !Sync for SignalReceiver
impl Freeze for SignalReceiver
impl RefUnwindSafe for SignalReceiver
impl Send for SignalReceiver
impl Unpin for SignalReceiver
impl UnsafeUnpin for SignalReceiver
impl UnwindSafe for SignalReceiver
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more