pub enum PhalanxError {
Crypto(String),
Protocol(String),
Group(String),
Authentication(String),
KeyDerivation(String),
Encryption(String),
Membership(String),
Version(String),
Serialization(Error),
Io(Error),
}Expand description
Comprehensive error types for all Phalanx operations
Variantsยง
Crypto(String)
Cryptographic operation failed
Protocol(String)
Invalid protocol message or format
Group(String)
Group operation failed
Authentication(String)
Authentication or signature verification failed
KeyDerivation(String)
Key exchange or derivation failed
Encryption(String)
Message encryption/decryption failed
Membership(String)
Invalid group membership or permissions
Version(String)
Protocol version mismatch or unsupported
Serialization(Error)
Serialization/deserialization failed
Io(Error)
Generic I/O error
Implementationsยง
Sourceยงimpl PhalanxError
impl PhalanxError
Sourcepub fn key_derivation(msg: impl Into<String>) -> Self
pub fn key_derivation(msg: impl Into<String>) -> Self
Create a new key derivation error
Sourcepub fn encryption(msg: impl Into<String>) -> Self
pub fn encryption(msg: impl Into<String>) -> Self
Create a new encryption error
Sourcepub fn membership(msg: impl Into<String>) -> Self
pub fn membership(msg: impl Into<String>) -> Self
Create a new membership error
Trait Implementationsยง
Sourceยงimpl Debug for PhalanxError
impl Debug for PhalanxError
Sourceยงimpl Display for PhalanxError
impl Display for PhalanxError
Sourceยงimpl Error for PhalanxError
impl Error for PhalanxError
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 PhalanxError
impl From<Error> for PhalanxError
Sourceยงimpl From<Error> for PhalanxError
impl From<Error> for PhalanxError
Sourceยงimpl From<Error> for PhalanxError
Convert from various cryptographic library errors
impl From<Error> for PhalanxError
Convert from various cryptographic library errors
Sourceยงimpl From<Error> for PhalanxError
impl From<Error> for PhalanxError
Sourceยงfn from(err: SignatureError) -> Self
fn from(err: SignatureError) -> Self
Converts to this type from the input type.
Auto Trait Implementationsยง
impl Freeze for PhalanxError
impl !RefUnwindSafe for PhalanxError
impl Send for PhalanxError
impl Sync for PhalanxError
impl Unpin for PhalanxError
impl !UnwindSafe for PhalanxError
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