pub struct ControlMessage {
pub length: u16,
pub tunnel_id: u16,
pub session_id: u16,
pub ns: u16,
pub nr: u16,
pub avps: Vec<AVP>,
}Expand description
§Summary
A ControlMessage is a representation of an L2TP control message which is the primary link control mechanism of the protocol.
§Data members
length- The payload length field.tunnel_id- The tunnel identifier field.session_id- The session identifier field.ns- The NS field.nr- The NR field.avps- A collection of Attribute Value Pairs constituting the payload of this message.
Fields§
§length: u16§tunnel_id: u16§session_id: u16§ns: u16§nr: u16§avps: Vec<AVP>Trait Implementations§
Source§impl Clone for ControlMessage
impl Clone for ControlMessage
Source§fn clone(&self) -> ControlMessage
fn clone(&self) -> ControlMessage
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 ControlMessage
impl Debug for ControlMessage
Source§impl PartialEq for ControlMessage
impl PartialEq for ControlMessage
impl Eq for ControlMessage
impl StructuralPartialEq for ControlMessage
Auto Trait Implementations§
impl Freeze for ControlMessage
impl RefUnwindSafe for ControlMessage
impl Send for ControlMessage
impl Sync for ControlMessage
impl Unpin for ControlMessage
impl UnwindSafe for ControlMessage
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