[−][src]Struct x3::x3::FrameHeader
Fields
source_id: u8
Source Id of the stream
samples: u16
The number of samples in the frame
channels: u8
The number of channels
payload_len: usize
The length of the frame (bytes)
payload_crc: u16
The CRC16 value for the payload
Implementations
impl FrameHeader
[src]
pub const LENGTH: usize
[src]
The length of the header
pub const KEY: u16
[src]
Fixed key marks the boundary of the frame 'x3'
pub const KEY_BUF: &'static [u8]
[src]
pub const P_KEY: usize
[src]
The location of various bytes in the header
pub const P_SOURCE_ID: usize
[src]
pub const P_CHANNELS: usize
[src]
pub const P_SAMPLES: usize
[src]
pub const P_PAYLOAD_SIZE: usize
[src]
pub const P_TIME: usize
[src]
pub const P_HEADER_CRC: usize
[src]
CRC of the encoded payload, all the frames
pub const P_PAYLOAD_CRC: usize
[src]
Auto Trait Implementations
impl RefUnwindSafe for FrameHeader
impl Send for FrameHeader
impl Sync for FrameHeader
impl Unpin for FrameHeader
impl UnwindSafe for FrameHeader
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,