pub struct BinaryEvent<'a> {
pub id: i32,
pub is_system_event: bool,
pub should_discard_on_repeat: bool,
pub data: Cow<'a, [u8]>,
}Expand description
nDisplay binary cluster event data.
Fields§
§id: i32Event id.
is_system_event: boolIs the event a “system” or “user” event.
should_discard_on_repeat: boolShould nDisplay discard events received within the same frame that have a matching id.
data: Cow<'a, [u8]>The binary data.
Implementations§
Source§impl BinaryEvent<'_>
impl BinaryEvent<'_>
Sourcepub const DEFAULT_PORT: u32 = 41_004u32
pub const DEFAULT_PORT: u32 = 41_004u32
The default tcp port that nDisplay uses for binary cluster event messages.
Trait Implementations§
Source§impl<'a> Clone for BinaryEvent<'a>
impl<'a> Clone for BinaryEvent<'a>
Source§fn clone(&self) -> BinaryEvent<'a>
fn clone(&self) -> BinaryEvent<'a>
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<'a> Debug for BinaryEvent<'a>
impl<'a> Debug for BinaryEvent<'a>
Source§impl Default for BinaryEvent<'_>
impl Default for BinaryEvent<'_>
Source§impl<'a> PartialEq for BinaryEvent<'a>
impl<'a> PartialEq for BinaryEvent<'a>
impl<'a> Eq for BinaryEvent<'a>
impl<'a> StructuralPartialEq for BinaryEvent<'a>
Auto Trait Implementations§
impl<'a> Freeze for BinaryEvent<'a>
impl<'a> RefUnwindSafe for BinaryEvent<'a>
impl<'a> Send for BinaryEvent<'a>
impl<'a> Sync for BinaryEvent<'a>
impl<'a> Unpin for BinaryEvent<'a>
impl<'a> UnwindSafe for BinaryEvent<'a>
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