pub enum Error {
}Variants§
NotInRoom(String)
ReachedNobody(String)
TimedOut
NameTaken(String)
Denied(String)
RoomPaused(String)
Invalid(String)
BadSignature(String)
OverBudget(String, Option<u64>)
Over a rate limit or the daily budget. The number is how many seconds until the limit lets the next message through, when known.
Db(Error)
Migration(Error)
Io(Error)
Json(Error)
Other(String)
Implementations§
Source§impl Error
impl Error
Sourcepub fn fate(&self) -> Option<Fate>
pub fn fate(&self) -> Option<Fate>
Should a sender try the same message again later? None when that
is not known: the caller keeps it and retries, and only gives up
when the same unknown answer has come back for a long time.
Temporary: the other side was not reached, is paused, over budget, or failed to store it. Definitive: retrying the same signed bytes cannot succeed.
Sourcepub fn retry_after(&self) -> Option<u64>
pub fn retry_after(&self) -> Option<u64>
Seconds until trying again can work, when the error knows.
Trait Implementations§
Source§impl Error for Error
impl Error for Error
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 !RefUnwindSafe for Error
impl !UnwindSafe for Error
impl Freeze for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnsafeUnpin for Error
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