pub enum SiteError {
Invalid(&'static str),
Bound(&'static str),
Refused(String),
Store,
Pass(String),
Lifecycle(LifecycleError),
}Expand description
All construction refusals contain boundary names, never rejected payloads.
Variants§
Invalid(&'static str)
The boundary named here is missing or invalid.
Bound(&'static str)
A configured count or byte bound was reached.
Refused(String)
Safe business words generated from validated routing metadata.
Store
Admission is poisoned after an uncertain durable operation.
Pass(String)
The admitted pass’s own refusal, without token or payload bytes.
Lifecycle(LifecycleError)
The existing lifecycle failed.
Trait Implementations§
Source§impl Error for SiteError
impl Error for SiteError
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()
Source§impl From<LifecycleError> for SiteError
impl From<LifecycleError> for SiteError
Source§fn from(source: LifecycleError) -> Self
fn from(source: LifecycleError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SiteError
impl RefUnwindSafe for SiteError
impl Send for SiteError
impl Sync for SiteError
impl Unpin for SiteError
impl UnsafeUnpin for SiteError
impl UnwindSafe for SiteError
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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