pub enum OctetStringLengthError {
ZeroLength,
MoreThan255Octets,
}Expand description
Errors when creating an octet string
Variants§
ZeroLength
Zero-length octet strings are explicitely disallowed by the standard.
MoreThan255Octets
Octet strings can only hold up to 255 octets.
Trait Implementations§
Source§impl Clone for OctetStringLengthError
impl Clone for OctetStringLengthError
Source§fn clone(&self) -> OctetStringLengthError
fn clone(&self) -> OctetStringLengthError
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 OctetStringLengthError
impl Debug for OctetStringLengthError
Source§impl PartialEq for OctetStringLengthError
impl PartialEq for OctetStringLengthError
impl Copy for OctetStringLengthError
impl Eq for OctetStringLengthError
impl StructuralPartialEq for OctetStringLengthError
Auto Trait Implementations§
impl Freeze for OctetStringLengthError
impl RefUnwindSafe for OctetStringLengthError
impl Send for OctetStringLengthError
impl Sync for OctetStringLengthError
impl Unpin for OctetStringLengthError
impl UnwindSafe for OctetStringLengthError
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