pub enum NotifyError {
UnknownCategory(String),
InvalidData,
NotMounted,
MissingPort(&'static str),
NoCatalog(String),
Database(DbError),
}Expand description
Why a fan-out could not be prepared.
Variants§
UnknownCategory(String)
The category is not one the venture declared. A typo in a caller is a bug, not a silent no-op.
InvalidData
Notification::data is neither absent nor a JSON object, so the
module cannot add category and notification_id to it.
NotMounted
The module’s router has not been built yet, so it has no ports.
MissingPort(&'static str)
A port the module requires is absent from this deployment.
NoCatalog(String)
A Message::Localizable was sent to a venture that configured no
catalog (#190). An error rather than an English fallback: the
venture named a message it has no strings for, and delivering the
id to a person is worse than telling the developer now.
Database(DbError)
Trait Implementations§
Source§impl Debug for NotifyError
impl Debug for NotifyError
Source§impl Display for NotifyError
impl Display for NotifyError
Source§impl Error for NotifyError
impl Error for NotifyError
1.30.0 · 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 NotifyError
impl RefUnwindSafe for NotifyError
impl Send for NotifyError
impl Sync for NotifyError
impl Unpin for NotifyError
impl UnsafeUnpin for NotifyError
impl UnwindSafe for NotifyError
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