pub enum LSPS5ClientError {
InvalidSignature,
ReplayAttack,
SerializationError,
}Expand description
Client-side validation and processing errors.
Unlike LSPS5ProtocolError, these errors are not part of the LSPS5 specification and are meant for internal use in the client implementation. They represent failures when parsing, validating, or processing webhook notifications.
Variants§
InvalidSignature
Signature verification failed.
The cryptographic signature from the LSP node doesn’t validate.
ReplayAttack
Detected a reused notification signature.
Indicates a potential replay attack where a previously seen notification signature was reused.
SerializationError
Error during serialization of LSPS5 webhook notification.
Implementations§
Trait Implementations§
Source§impl Clone for LSPS5ClientError
impl Clone for LSPS5ClientError
Source§fn clone(&self) -> LSPS5ClientError
fn clone(&self) -> LSPS5ClientError
Returns a duplicate 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 LSPS5ClientError
impl Debug for LSPS5ClientError
Source§impl<'de> Deserialize<'de> for LSPS5ClientError
impl<'de> Deserialize<'de> for LSPS5ClientError
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<LSPS5ClientError> for LSPS5Error
impl From<LSPS5ClientError> for LSPS5Error
Source§fn from(e: LSPS5ClientError) -> Self
fn from(e: LSPS5ClientError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for LSPS5ClientError
impl PartialEq for LSPS5ClientError
Source§impl Serialize for LSPS5ClientError
impl Serialize for LSPS5ClientError
impl Eq for LSPS5ClientError
impl StructuralPartialEq for LSPS5ClientError
Auto Trait Implementations§
impl Freeze for LSPS5ClientError
impl RefUnwindSafe for LSPS5ClientError
impl Send for LSPS5ClientError
impl Sync for LSPS5ClientError
impl Unpin for LSPS5ClientError
impl UnwindSafe for LSPS5ClientError
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