Enum synchronoise::event::CountdownError
source · [−]pub enum CountdownError {
SaturatedCounter,
TooManySignals,
AlreadySet,
}
Expand description
The collection of errors that can be returned by CountdownEvent
methods.
See CountdownEvent
for more details.
Variants
SaturatedCounter
Returned when adding to a counter would have caused it to overflow.
TooManySignals
Returned when attempting to signal would have caused the counter to go below zero.
AlreadySet
Returned when attempting to modify the counter after it has reached zero.
Trait Implementations
sourceimpl Clone for CountdownError
impl Clone for CountdownError
sourcefn clone(&self) -> CountdownError
fn clone(&self) -> CountdownError
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for CountdownError
impl Debug for CountdownError
sourceimpl PartialEq<CountdownError> for CountdownError
impl PartialEq<CountdownError> for CountdownError
sourcefn eq(&self, other: &CountdownError) -> bool
fn eq(&self, other: &CountdownError) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
impl Copy for CountdownError
impl Eq for CountdownError
impl StructuralEq for CountdownError
impl StructuralPartialEq for CountdownError
Auto Trait Implementations
impl RefUnwindSafe for CountdownError
impl Send for CountdownError
impl Sync for CountdownError
impl Unpin for CountdownError
impl UnwindSafe for CountdownError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more