Struct Maxpacketsize
#[repr(transparent)]pub struct Maxpacketsize(pub u32);
Expand description
Length of keystream generated when MODE.LENGTH = Extended
Tuple Fields§
§0: u32
Implementations§
§impl Maxpacketsize
impl Maxpacketsize
pub const fn maxpacketsize(&self) -> u8
pub const fn maxpacketsize(&self) -> u8
Length of keystream generated when MODE.LENGTH = Extended. This value must be greater than or equal to the subsequent packet payload to be encrypted/decrypted.
pub fn set_maxpacketsize(&mut self, val: u8)
pub fn set_maxpacketsize(&mut self, val: u8)
Length of keystream generated when MODE.LENGTH = Extended. This value must be greater than or equal to the subsequent packet payload to be encrypted/decrypted.
Trait Implementations§
§impl Clone for Maxpacketsize
impl Clone for Maxpacketsize
§fn clone(&self) -> Maxpacketsize
fn clone(&self) -> Maxpacketsize
Returns a copy 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 more§impl Default for Maxpacketsize
impl Default for Maxpacketsize
§fn default() -> Maxpacketsize
fn default() -> Maxpacketsize
Returns the “default value” for a type. Read more
§impl PartialEq for Maxpacketsize
impl PartialEq for Maxpacketsize
impl Copy for Maxpacketsize
impl Eq for Maxpacketsize
impl StructuralPartialEq for Maxpacketsize
Auto Trait Implementations§
impl Freeze for Maxpacketsize
impl RefUnwindSafe for Maxpacketsize
impl Send for Maxpacketsize
impl Sync for Maxpacketsize
impl Unpin for Maxpacketsize
impl UnwindSafe for Maxpacketsize
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)