pub enum BeatError {
BrokerError(BrokerError),
ProtocolError(ProtocolError),
ScheduleError(ScheduleError),
}
Expand description
Errors that can occur while creating or using a Beat
app.
Variants§
BrokerError(BrokerError)
Any broker-level error.
ProtocolError(ProtocolError)
A protocol error.
ScheduleError(ScheduleError)
An error with a task schedule.
Trait Implementations§
Source§impl Error for BeatError
impl Error for BeatError
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()
Source§impl From<BrokerError> for BeatError
impl From<BrokerError> for BeatError
Source§fn from(source: BrokerError) -> Self
fn from(source: BrokerError) -> Self
Converts to this type from the input type.
Source§impl From<ProtocolError> for BeatError
impl From<ProtocolError> for BeatError
Source§fn from(source: ProtocolError) -> Self
fn from(source: ProtocolError) -> Self
Converts to this type from the input type.
Source§impl From<ScheduleError> for BeatError
impl From<ScheduleError> for BeatError
Source§fn from(source: ScheduleError) -> Self
fn from(source: ScheduleError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for BeatError
impl !RefUnwindSafe for BeatError
impl Send for BeatError
impl Sync for BeatError
impl Unpin for BeatError
impl !UnwindSafe for BeatError
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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