pub enum LENGTHR {
DEFAULT,
EXTENDED,
}
Expand description
Possible values of the field LENGTH
Variants
DEFAULT
Default length. Effective length of LENGTH field in encrypted/decrypted packet is 5 bits. A key-stream for packet payloads up to 27 bytes will be generated.
EXTENDED
Extended length. Effective length of LENGTH field in encrypted/decrypted packet is 8 bits. A key-stream for packet payloads up to MAXPACKETSIZE bytes will be generated.
Implementations
sourceimpl LENGTHR
impl LENGTHR
sourcepub fn bit_is_clear(&self) -> bool
pub fn bit_is_clear(&self) -> bool
Returns true
if the bit is clear (0)
sourcepub fn bit_is_set(&self) -> bool
pub fn bit_is_set(&self) -> bool
Returns true
if the bit is set (1)
sourcepub fn is_default(&self) -> bool
pub fn is_default(&self) -> bool
Checks if the value of the field is DEFAULT
sourcepub fn is_extended(&self) -> bool
pub fn is_extended(&self) -> bool
Checks if the value of the field is EXTENDED
Trait Implementations
impl Copy for LENGTHR
impl StructuralPartialEq for LENGTHR
Auto Trait Implementations
impl RefUnwindSafe for LENGTHR
impl Send for LENGTHR
impl Sync for LENGTHR
impl Unpin for LENGTHR
impl UnwindSafe for LENGTHR
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more