Enum gw_bin::triggers::TriggerError
source · pub enum TriggerError {
Misconfigured(String),
ReceiverHangup(SendError<Option<()>>),
FailedTrigger(String),
}Expand description
A custom error for describing the error cases for triggers
Variants§
Misconfigured(String)
Cannot initialize trigger, because it has a misconfiguration.
ReceiverHangup(SendError<Option<()>>)
Cannot send trigger with Sender. This usually because the receiver is dropped.
FailedTrigger(String)
Running the trigger failed.
Trait Implementations§
source§impl Debug for TriggerError
impl Debug for TriggerError
source§impl Display for TriggerError
impl Display for TriggerError
source§impl Error for TriggerError
impl Error for TriggerError
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<HttpError> for TriggerError
impl From<HttpError> for TriggerError
source§impl From<ScheduleError> for TriggerError
impl From<ScheduleError> for TriggerError
source§fn from(val: ScheduleError) -> Self
fn from(val: ScheduleError) -> Self
Converts to this type from the input type.
source§impl From<TriggerError> for StartError
impl From<TriggerError> for StartError
source§fn from(source: TriggerError) -> Self
fn from(source: TriggerError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl RefUnwindSafe for TriggerError
impl Send for TriggerError
impl Sync for TriggerError
impl Unpin for TriggerError
impl UnwindSafe for TriggerError
Blanket Implementations§
§impl<T> AnySync for T
impl<T> AnySync for T
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