pub enum SignedPacketVerifyError {
SignatureError(SignatureError),
DnsError(SimpleDnsError),
InvalidSignedPacketBytesLength(usize),
PacketTooLarge(usize),
PublicKeyError(PublicKeyError),
}Expand description
Errors trying to parse or create a SignedPacket
Variants§
SignatureError(SignatureError)
Errors which may occur while processing signatures and keypairs.
DnsError(SimpleDnsError)
Transparent simple_dns::SimpleDnsError
InvalidSignedPacketBytesLength(usize)
Serialized signed packets are <32 bytes publickey><64 bytes signature><8 bytes timestamp><less than or equal to 1000 bytes encoded dns packet>.
PacketTooLarge(usize)
DNS packet endocded and compressed is larger than 1000 bytes
PublicKeyError(PublicKeyError)
Errors while trying to create a PublicKey
Trait Implementations§
Source§impl Debug for SignedPacketVerifyError
impl Debug for SignedPacketVerifyError
Source§impl Display for SignedPacketVerifyError
impl Display for SignedPacketVerifyError
Source§impl Error for SignedPacketVerifyError
impl Error for SignedPacketVerifyError
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 SignedPacketVerifyError
impl From<Error> for SignedPacketVerifyError
Source§fn from(source: SignatureError) -> Self
fn from(source: SignatureError) -> Self
Converts to this type from the input type.
Source§impl From<PublicKeyError> for SignedPacketVerifyError
impl From<PublicKeyError> for SignedPacketVerifyError
Source§fn from(source: PublicKeyError) -> Self
fn from(source: PublicKeyError) -> Self
Converts to this type from the input type.
Source§impl From<SimpleDnsError> for SignedPacketVerifyError
impl From<SimpleDnsError> for SignedPacketVerifyError
Source§fn from(source: SimpleDnsError) -> Self
fn from(source: SimpleDnsError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SignedPacketVerifyError
impl !RefUnwindSafe for SignedPacketVerifyError
impl Send for SignedPacketVerifyError
impl Sync for SignedPacketVerifyError
impl Unpin for SignedPacketVerifyError
impl UnsafeUnpin for SignedPacketVerifyError
impl !UnwindSafe for SignedPacketVerifyError
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.