pub enum PrivateKey {
InvalidLengthError {
source: InvalidLength,
},
DecodeError {
source: DecodeError,
},
}Expand description
Occurs when there is an error sending a request.
Variants§
InvalidLengthError
Invalid length error occurred.
Fields
§
source: InvalidLengthSource of the error.
DecodeError
Decode error occurred.
Fields
§
source: DecodeErrorSource of the error.
Trait Implementations§
Source§impl Clone for PrivateKey
impl Clone for PrivateKey
Source§fn clone(&self) -> PrivateKey
fn clone(&self) -> PrivateKey
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 PrivateKey
impl Debug for PrivateKey
Source§impl Display for PrivateKey
impl Display for PrivateKey
Source§impl Error for PrivateKey
impl Error for PrivateKey
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<DecodeError> for PrivateKey
impl From<DecodeError> for PrivateKey
Source§fn from(source: DecodeError) -> Self
fn from(source: DecodeError) -> Self
Converts to this type from the input type.
Source§impl From<InvalidLength> for PrivateKey
impl From<InvalidLength> for PrivateKey
Source§fn from(source: InvalidLength) -> Self
fn from(source: InvalidLength) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for PrivateKey
impl RefUnwindSafe for PrivateKey
impl Send for PrivateKey
impl Sync for PrivateKey
impl Unpin for PrivateKey
impl UnwindSafe for PrivateKey
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