Struct sacn::packet::AcnRootLayerProtocol
[−]
[src]
pub struct AcnRootLayerProtocol<'a> { pub pdu: E131RootLayer<'a>, }
Root layer protocol of the Architecture for Control Networks (ACN) protocol.
Fields
pdu: E131RootLayer<'a>
The PDU this packet carries.
Methods
impl<'a> AcnRootLayerProtocol<'a>
[src]
pub fn parse(buf: &'a [u8]) -> Result<AcnRootLayerProtocol<'a>, ParseError>
[src]
Parse the packet from the given buffer.
pub fn pack_alloc(&self) -> Result<Vec<u8>, PackError>
[src]
Packs the packet into heap allocated memory.
pub fn pack_vec(&self, buf: &mut Vec<u8>) -> Result<(), PackError>
[src]
Packs the packet into the given vector.
Grows the vector buf
if necessary.
pub fn pack(&self, buf: &mut [u8]) -> Result<(), PackError>
[src]
Packs the packet into the givven buffer.
pub fn len(&self) -> usize
[src]
The length of the packet when packed.
Trait Implementations
impl<'a> Debug for AcnRootLayerProtocol<'a>
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl<'a> Clone for AcnRootLayerProtocol<'a>
[src]
fn clone(&self) -> AcnRootLayerProtocol<'a>
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<'a> PartialEq for AcnRootLayerProtocol<'a>
[src]
fn eq(&self, __arg_0: &AcnRootLayerProtocol<'a>) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &AcnRootLayerProtocol<'a>) -> bool
[src]
This method tests for !=
.