pub enum SignatureFileError {
InvalidJson(Error),
Key(KeyError),
Signature(SignatureError),
}Expand description
An error parsing or writing a module.sig file.
Variants§
InvalidJson(Error)
The file is not valid JSON.
Key(KeyError)
The public_key field could not be parsed as an OpenSSH Ed25519
public key.
Signature(SignatureError)
The signature field could not be parsed as a base64-encoded
64-byte Ed25519 signature.
Trait Implementations§
Source§impl Debug for SignatureFileError
impl Debug for SignatureFileError
Source§impl Display for SignatureFileError
impl Display for SignatureFileError
Source§impl Error for SignatureFileError
impl Error for SignatureFileError
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<Error> for SignatureFileError
impl From<Error> for SignatureFileError
Source§impl From<KeyError> for SignatureFileError
impl From<KeyError> for SignatureFileError
Source§impl From<SignatureError> for SignatureFileError
impl From<SignatureError> for SignatureFileError
Source§fn from(source: SignatureError) -> Self
fn from(source: SignatureError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for SignatureFileError
impl !UnwindSafe for SignatureFileError
impl Freeze for SignatureFileError
impl Send for SignatureFileError
impl Sync for SignatureFileError
impl Unpin for SignatureFileError
impl UnsafeUnpin for SignatureFileError
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