pub enum LicenceError {
Prefix(String),
Encoding(String),
Incomplete,
Payload(String),
UnsupportedVersion(u32),
UnknownKey(String),
Signature,
Key(String),
State(String),
}Expand description
Errors of the licence format and state files.
Variants§
Prefix(String)
Encoding(String)
Incomplete
Payload(String)
UnsupportedVersion(u32)
UnknownKey(String)
Signature
Key(String)
State(String)
Trait Implementations§
Source§impl Clone for LicenceError
impl Clone for LicenceError
Source§fn clone(&self) -> LicenceError
fn clone(&self) -> LicenceError
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LicenceError
impl Debug for LicenceError
Source§impl Display for LicenceError
impl Display for LicenceError
Source§impl Error for LicenceError
impl Error for LicenceError
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()
Source§impl From<LicenceError> for RejectReason
impl From<LicenceError> for RejectReason
Source§fn from(error: LicenceError) -> Self
fn from(error: LicenceError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for LicenceError
impl PartialEq for LicenceError
impl Eq for LicenceError
impl StructuralPartialEq for LicenceError
Auto Trait Implementations§
impl Freeze for LicenceError
impl RefUnwindSafe for LicenceError
impl Send for LicenceError
impl Sync for LicenceError
impl Unpin for LicenceError
impl UnwindSafe for LicenceError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.