pub struct ProtocolProperties {
pub short: u8,
pub long: u8,
pub sync_bit: u8,
pub sync_gap: u8,
}Expand description
In the protocol we define the smallest parts of the radio signal. Usually a short pulse with a long pause resembles a binary zero, and a long pulse followed by a short pause resembles a binary one. A sync bit / sync gap combination marks the beginning of the radio transmission.
Fields§
§short: u8§long: u8§sync_bit: u8§sync_gap: u8Implementations§
Source§impl ProtocolProperties
impl ProtocolProperties
Sourcepub fn builder() -> ProtocolBuilder
pub fn builder() -> ProtocolBuilder
Invoke the builder pattern.
Trait Implementations§
Source§impl Clone for ProtocolProperties
impl Clone for ProtocolProperties
Source§fn clone(&self) -> ProtocolProperties
fn clone(&self) -> ProtocolProperties
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 Debug for ProtocolProperties
impl Debug for ProtocolProperties
Source§impl Default for ProtocolProperties
impl Default for ProtocolProperties
Source§fn default() -> ProtocolProperties
fn default() -> ProtocolProperties
Returns the “default value” for a type. Read more
Source§impl PartialEq for ProtocolProperties
impl PartialEq for ProtocolProperties
impl Copy for ProtocolProperties
impl StructuralPartialEq for ProtocolProperties
Auto Trait Implementations§
impl Freeze for ProtocolProperties
impl RefUnwindSafe for ProtocolProperties
impl Send for ProtocolProperties
impl Sync for ProtocolProperties
impl Unpin for ProtocolProperties
impl UnwindSafe for ProtocolProperties
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