#[non_exhaustive]pub enum DeclareError {
StartBeforeNow {
fn_name: String,
start: String,
now: String,
},
EndBeforeNow {
fn_name: String,
end: String,
now: String,
},
Key(Error),
Store(String),
Reserved(String),
}Expand description
Why declare_at refused a declaration.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
StartBeforeNow
An explicit valid_from earlier than the mesh clock (rule A, CONTRACT-1.8b H1).
EndBeforeNow
A valid_to earlier than the mesh clock (rule A).
Key(Error)
The key document refuses the declaration (SPEC 9.2, as with_declaration says).
Store(String)
The store refused: no key document of the host, or a write failed.
Reserved(String)
The name is under a path the mesh reserves (E_NAME_RESERVED, CONTRACT-0.4.9 H8).
Trait Implementations§
Source§impl Debug for DeclareError
impl Debug for DeclareError
Source§impl Display for DeclareError
impl Display for DeclareError
Source§impl Error for DeclareError
impl Error for DeclareError
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 Forget for DeclareError
impl Freeze for DeclareError
impl Move for DeclareError
impl RefUnwindSafe for DeclareError
impl Send for DeclareErrorwhere
RawVecInner: Send,
impl Sync for DeclareErrorwhere
RawVecInner: Sync,
impl Unpin for DeclareError
impl UnsafeUnpin for DeclareError
impl UnwindSafe for DeclareErrorwhere
RawVecInner: UnwindSafe,
Blanket Implementations§
impl<T> Allocation 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