Struct natnet_decode::NatNet [] [src]

pub struct NatNet { /* fields omitted */ }

Parser for NatNet data

This is the main entry point to unpack/parse NatNet data.

Methods

impl NatNet
[src]

Create a new NatNet parser with the given version

This will create a new parser that utilizes the given version for subsequent unpack calls

Unpack a message from NatNet using a specified version

This will try to unpack a message coming from a NatNet application assuming the message uses the given version

Unpack only NatNetMsgType messages

This method unpacks only messages of the requested type. The function will consume the header of any NatNet message to check if it is the correct message and unpack only if it is. This method can be useful when needing to unpack only sender messages if NatNet version is unknown.

Unpack a message from NatNet

Unpack only NatNetMsgType messages

This method unpacks only messages of the requested type. The function will consume the header of any NatNet message to check if it is the correct message and unpack only if it is. This method can be useful when needing to unpack only sender messages if NatNet version is unknown.

Trait Implementations

impl Clone for NatNet
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for NatNet
[src]

Formats the value using the given formatter.