pub struct ExtensionField {
pub field_type: u16,
pub value: Vec<u8>,
}Expand description
A generic NTP extension field.
Fields§
§field_type: u16The extension field type code.
value: Vec<u8>The extension field value (variable length, excluding the 4-byte header).
Trait Implementations§
Source§impl Clone for ExtensionField
impl Clone for ExtensionField
Source§fn clone(&self) -> ExtensionField
fn clone(&self) -> ExtensionField
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 ExtensionField
impl Debug for ExtensionField
Source§impl PartialEq for ExtensionField
impl PartialEq for ExtensionField
impl Eq for ExtensionField
impl StructuralPartialEq for ExtensionField
Auto Trait Implementations§
impl Freeze for ExtensionField
impl RefUnwindSafe for ExtensionField
impl Send for ExtensionField
impl Sync for ExtensionField
impl Unpin for ExtensionField
impl UnsafeUnpin for ExtensionField
impl UnwindSafe for ExtensionField
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