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§
Source§impl Clone for CountdownError
impl Clone for CountdownError
Source§fn clone(&self) -> CountdownError
fn clone(&self) -> CountdownError
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 Debug for CountdownError
impl Debug for CountdownError
Source§impl PartialEq for CountdownError
impl PartialEq for CountdownError
impl Copy for CountdownError
impl Eq for CountdownError
impl StructuralPartialEq for CountdownError
Auto Trait Implementations§
impl Freeze for CountdownError
impl RefUnwindSafe for CountdownError
impl Send for CountdownError
impl Sync for CountdownError
impl Unpin for CountdownError
impl UnwindSafe for CountdownError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 1 byte
Size for each variant:
SaturatedCounter
: 0 bytesTooManySignals
: 0 bytesAlreadySet
: 0 bytes