pub struct PacketLayout {
pub hmac: bool,
pub token: bool,
pub sequence: bool,
pub recv_count: bool,
pub recv_window: bool,
pub recv_wall: bool,
pub recv_mono: bool,
pub midpoint_wall: bool,
pub midpoint_mono: bool,
pub send_wall: bool,
pub send_mono: bool,
}Fields§
§hmac: bool§token: bool§sequence: bool§recv_count: bool§recv_window: bool§recv_wall: bool§recv_mono: bool§midpoint_wall: bool§midpoint_mono: bool§send_wall: bool§send_mono: boolImplementations§
Source§impl PacketLayout
impl PacketLayout
pub fn open_request(hmac: bool) -> Self
pub fn open_reply(hmac: bool) -> Self
pub fn echo(hmac: bool, params: &Params) -> Self
pub fn close_request(hmac: bool) -> Self
pub fn header_len(self) -> usize
pub fn timestamp_count(self) -> usize
Trait Implementations§
Source§impl Clone for PacketLayout
impl Clone for PacketLayout
impl Copy for PacketLayout
Source§impl Debug for PacketLayout
impl Debug for PacketLayout
impl Eq for PacketLayout
Source§impl PartialEq for PacketLayout
impl PartialEq for PacketLayout
impl StructuralPartialEq for PacketLayout
Auto Trait Implementations§
impl Freeze for PacketLayout
impl RefUnwindSafe for PacketLayout
impl Send for PacketLayout
impl Sync for PacketLayout
impl Unpin for PacketLayout
impl UnsafeUnpin for PacketLayout
impl UnwindSafe for PacketLayout
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