pub enum ExpandMsgXmdError {
EmptyDst,
DstHash,
Length,
}Expand description
Error type for ExpandMsgXmd.
Variants§
EmptyDst
The domain separation tag must not be empty.
DstHash
The hash’s output size must not be greater then 255
if the domain separation tag is longer than 255.
Length
The length in bytes is too large.
len_in_bytes must be at most 255 * HashT::OutputSize.
Trait Implementations§
Source§impl Clone for ExpandMsgXmdError
impl Clone for ExpandMsgXmdError
Source§fn clone(&self) -> ExpandMsgXmdError
fn clone(&self) -> ExpandMsgXmdError
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 ExpandMsgXmdError
impl Debug for ExpandMsgXmdError
Source§impl Display for ExpandMsgXmdError
impl Display for ExpandMsgXmdError
Source§impl Error for ExpandMsgXmdError
impl Error for ExpandMsgXmdError
1.30.0 · 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 PartialEq for ExpandMsgXmdError
impl PartialEq for ExpandMsgXmdError
impl Copy for ExpandMsgXmdError
impl Eq for ExpandMsgXmdError
impl StructuralPartialEq for ExpandMsgXmdError
Auto Trait Implementations§
impl Freeze for ExpandMsgXmdError
impl RefUnwindSafe for ExpandMsgXmdError
impl Send for ExpandMsgXmdError
impl Sync for ExpandMsgXmdError
impl Unpin for ExpandMsgXmdError
impl UnsafeUnpin for ExpandMsgXmdError
impl UnwindSafe for ExpandMsgXmdError
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