pub enum QueueError {
SourceError(Box<dyn Error + Send>),
ThreadPanic(String),
ThreadSendError(Box<dyn Any + Send>),
MultipleStart,
EventBeforeStart,
}
Expand description
Represents an error emitted by the API.
Variants§
SourceError(Box<dyn Error + Send>)
A problem with the event source occurred further described by the inner error.
ThreadPanic(String)
A problem with the worker thread occurred.
ThreadSendError(Box<dyn Any + Send>)
An event could not be sent.
MultipleStart
Multiple start commands were send to the api.
EventBeforeStart
An event was received before the monitor was started.
Trait Implementations§
Source§impl Debug for QueueError
impl Debug for QueueError
Source§impl Display for QueueError
impl Display for QueueError
Source§impl Error for QueueError
impl Error for QueueError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for QueueError
impl !RefUnwindSafe for QueueError
impl Send for QueueError
impl !Sync for QueueError
impl Unpin for QueueError
impl !UnwindSafe for QueueError
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> 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