pub enum CeremonyError {
SessionNotFound(Uuid),
SessionExpired,
MissingField(String),
InvalidCeremony(String),
AlreadyComplete,
Internal(String),
}Expand description
Ceremony framework errors.
Variants§
SessionNotFound(Uuid)
SessionExpired
MissingField(String)
InvalidCeremony(String)
AlreadyComplete
Internal(String)
Implementations§
Source§impl CeremonyError
impl CeremonyError
Sourcepub fn http_status(&self) -> u16
pub fn http_status(&self) -> u16
Map to an HTTP status code.
Trait Implementations§
Source§impl Debug for CeremonyError
impl Debug for CeremonyError
Source§impl Display for CeremonyError
impl Display for CeremonyError
Source§impl Error for CeremonyError
impl Error for CeremonyError
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 CeremonyError
impl RefUnwindSafe for CeremonyError
impl Send for CeremonyError
impl Sync for CeremonyError
impl Unpin for CeremonyError
impl UnsafeUnpin for CeremonyError
impl UnwindSafe for CeremonyError
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