pub enum SemaphoreError {
FailedToCreate,
FailedToPost,
FailedToWait,
}Expand description
The SemaphoreError enum is a generalization when one doesn’t require the fine-grained error
handling enums. One can forward SemaphoreError as more generic return value when a method
returns a Semaphore***Error.
On a higher level it is again convertable to crate::Error.
Variants§
Trait Implementations§
Source§impl Clone for SemaphoreError
impl Clone for SemaphoreError
Source§fn clone(&self) -> SemaphoreError
fn clone(&self) -> SemaphoreError
Returns a duplicate 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 SemaphoreError
impl Debug for SemaphoreError
Source§impl From<NamedSemaphoreCreationError> for SemaphoreError
impl From<NamedSemaphoreCreationError> for SemaphoreError
Source§fn from(_: NamedSemaphoreCreationError) -> SemaphoreError
fn from(_: NamedSemaphoreCreationError) -> SemaphoreError
Converts to this type from the input type.
Source§impl From<SemaphorePostError> for SemaphoreError
impl From<SemaphorePostError> for SemaphoreError
Source§fn from(_: SemaphorePostError) -> SemaphoreError
fn from(_: SemaphorePostError) -> SemaphoreError
Converts to this type from the input type.
Source§impl From<SemaphoreTimedWaitError> for SemaphoreError
impl From<SemaphoreTimedWaitError> for SemaphoreError
Source§fn from(_: SemaphoreTimedWaitError) -> SemaphoreError
fn from(_: SemaphoreTimedWaitError) -> SemaphoreError
Converts to this type from the input type.
Source§impl From<SemaphoreWaitError> for SemaphoreError
impl From<SemaphoreWaitError> for SemaphoreError
Source§fn from(_: SemaphoreWaitError) -> SemaphoreError
fn from(_: SemaphoreWaitError) -> SemaphoreError
Converts to this type from the input type.
Source§impl From<UnnamedSemaphoreCreationError> for SemaphoreError
impl From<UnnamedSemaphoreCreationError> for SemaphoreError
Source§fn from(_: UnnamedSemaphoreCreationError) -> SemaphoreError
fn from(_: UnnamedSemaphoreCreationError) -> SemaphoreError
Converts to this type from the input type.
Source§impl Hash for SemaphoreError
impl Hash for SemaphoreError
Source§impl PartialEq for SemaphoreError
impl PartialEq for SemaphoreError
impl Copy for SemaphoreError
impl Eq for SemaphoreError
impl StructuralPartialEq for SemaphoreError
Auto Trait Implementations§
impl Freeze for SemaphoreError
impl RefUnwindSafe for SemaphoreError
impl Send for SemaphoreError
impl Sync for SemaphoreError
impl Unpin for SemaphoreError
impl UnwindSafe for SemaphoreError
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