Enum cypher::EcSerError
source · pub enum EcSerError {
Io(IoError),
InvalidKeyLength(usize),
InvalidKey(EcPkInvalid),
DataEncoding(String),
}Variants§
Io(IoError)
InvalidKeyLength(usize)
public key has invalid length {0}
InvalidKey(EcPkInvalid)
DataEncoding(String)
error parsing encoding: {0}
Trait Implementations§
source§impl Clone for EcSerError
impl Clone for EcSerError
source§fn clone(&self) -> EcSerError
fn clone(&self) -> EcSerError
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 EcSerError
impl Debug for EcSerError
source§impl Display for EcSerError
impl Display for EcSerError
source§impl Error for EcSerError
impl Error for EcSerError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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<EcPkInvalid> for EcSerError
impl From<EcPkInvalid> for EcSerError
source§fn from(v: EcPkInvalid) -> Self
fn from(v: EcPkInvalid) -> Self
Converts to this type from the input type.
source§impl From<EcSerError> for String
impl From<EcSerError> for String
source§fn from(err: EcSerError) -> Self
fn from(err: EcSerError) -> Self
Converts to this type from the input type.
source§impl From<Error> for EcSerError
impl From<Error> for EcSerError
source§impl From<Error> for EcSerError
impl From<Error> for EcSerError
source§impl From<IoError> for EcSerError
impl From<IoError> for EcSerError
source§impl PartialEq<EcSerError> for EcSerError
impl PartialEq<EcSerError> for EcSerError
source§fn eq(&self, other: &EcSerError) -> bool
fn eq(&self, other: &EcSerError) -> bool
This method tests for
self and other values to be equal, and is used
by ==.