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)>
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.