pub struct WireFormat {
pub timestamps: bool,
pub host_endian: bool,
}Expand description
How events are laid out on the wire.
Fields§
§timestamps: boolInclude a timestamp word per event. Doubles the bandwidth; without it the receiver stamps events on arrival, which is fine for live display and wrong for anything measuring latency.
host_endian: boolWrite words in host byte order. Default true, to match aestream.
Implementations§
Source§impl WireFormat
impl WireFormat
Sourcepub fn host_endian() -> Self
pub fn host_endian() -> Self
aestream-compatible: host byte order, no timestamps.
Sourcepub fn network_endian() -> Self
pub fn network_endian() -> Self
Correct network byte order. Will not interoperate with aestream on a little-endian host.
Sourcepub fn with_timestamps(self) -> Self
pub fn with_timestamps(self) -> Self
The same format with timestamps included.
Trait Implementations§
Source§impl Clone for WireFormat
impl Clone for WireFormat
Source§fn clone(&self) -> WireFormat
fn clone(&self) -> WireFormat
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for WireFormat
Source§impl Debug for WireFormat
impl Debug for WireFormat
Source§impl Default for WireFormat
impl Default for WireFormat
impl Eq for WireFormat
Source§impl PartialEq for WireFormat
impl PartialEq for WireFormat
impl StructuralPartialEq for WireFormat
Auto Trait Implementations§
impl Freeze for WireFormat
impl RefUnwindSafe for WireFormat
impl Send for WireFormat
impl Sync for WireFormat
impl Unpin for WireFormat
impl UnsafeUnpin for WireFormat
impl UnwindSafe for WireFormat
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more