pub enum KeyLength {
Fixed(usize),
Variable,
NotApplicable,
}Expand description
Expected payload length without conflating variable keys and non-key codecs.
Variants§
Fixed(usize)
A payload with an exact byte length.
Variable
A nonempty variable-length payload, such as an RSA key.
NotApplicable
This codec does not represent a key payload.
Trait Implementations§
impl Copy for KeyLength
impl Eq for KeyLength
impl StructuralPartialEq for KeyLength
Auto Trait Implementations§
impl Freeze for KeyLength
impl RefUnwindSafe for KeyLength
impl Send for KeyLength
impl Sync for KeyLength
impl Unpin for KeyLength
impl UnsafeUnpin for KeyLength
impl UnwindSafe for KeyLength
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