pub struct SyncPacketType(/* private fields */);
Expand description
SyncPacketType
Implementations§
Source§impl SyncPacketType
impl SyncPacketType
Sourcepub fn into_inner(self) -> [u8; 2]
pub fn into_inner(self) -> [u8; 2]
Get the inner representation.
pub const fn hv1_may_be_used(&self) -> bool
pub const fn set_hv1_may_be_used(self, val: bool) -> Self
pub const fn hv2_may_be_used(&self) -> bool
pub const fn set_hv2_may_be_used(self, val: bool) -> Self
pub const fn hv3_may_be_used(&self) -> bool
pub const fn set_hv3_may_be_used(self, val: bool) -> Self
pub const fn ev3_may_be_used(&self) -> bool
pub const fn set_ev3_may_be_used(self, val: bool) -> Self
pub const fn ev4_may_be_used(&self) -> bool
pub const fn set_ev4_may_be_used(self, val: bool) -> Self
pub const fn ev5_may_be_used(&self) -> bool
pub const fn set_ev5_may_be_used(self, val: bool) -> Self
pub const fn shall_not_be_used_2ev3(&self) -> bool
pub const fn set_shall_not_be_used_2ev3(self, val: bool) -> Self
pub const fn shall_not_be_used_3ev3(&self) -> bool
pub const fn set_shall_not_be_used_3ev3(self, val: bool) -> Self
pub const fn shall_not_be_used_2ev5(&self) -> bool
pub const fn set_shall_not_be_used_2ev5(self, val: bool) -> Self
pub const fn shall_not_be_used_3ev5(&self) -> bool
pub const fn set_shall_not_be_used_3ev5(self, val: bool) -> Self
Trait Implementations§
Source§impl ByteAlignedValue for SyncPacketType
impl ByteAlignedValue for SyncPacketType
Source§fn ref_from_hci_bytes(data: &[u8]) -> Result<(&Self, &[u8]), FromHciBytesError>
fn ref_from_hci_bytes(data: &[u8]) -> Result<(&Self, &[u8]), FromHciBytesError>
Obtain a reference to this type from a byte slice. Read more
Source§impl Clone for SyncPacketType
impl Clone for SyncPacketType
Source§fn clone(&self) -> SyncPacketType
fn clone(&self) -> SyncPacketType
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 SyncPacketType
impl Debug for SyncPacketType
Source§impl Default for SyncPacketType
impl Default for SyncPacketType
Source§fn default() -> SyncPacketType
fn default() -> SyncPacketType
Returns the “default value” for a type. Read more
Source§impl FixedSizeValue for SyncPacketType
impl FixedSizeValue for SyncPacketType
Source§impl<'de> FromHciBytes<'de> for &'de SyncPacketType
impl<'de> FromHciBytes<'de> for &'de SyncPacketType
Source§fn from_hci_bytes(
data: &'de [u8],
) -> Result<(Self, &'de [u8]), FromHciBytesError>
fn from_hci_bytes( data: &'de [u8], ) -> Result<(Self, &'de [u8]), FromHciBytesError>
Deserialize bytes into a HCI type, return additional bytes.
Source§fn from_hci_bytes_complete(data: &'de [u8]) -> Result<Self, FromHciBytesError>
fn from_hci_bytes_complete(data: &'de [u8]) -> Result<Self, FromHciBytesError>
Deserialize bytes into a HCI type, must consume all bytes.
Source§impl Hash for SyncPacketType
impl Hash for SyncPacketType
Source§impl Ord for SyncPacketType
impl Ord for SyncPacketType
Source§fn cmp(&self, other: &SyncPacketType) -> Ordering
fn cmp(&self, other: &SyncPacketType) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for SyncPacketType
impl PartialEq for SyncPacketType
Source§impl PartialOrd for SyncPacketType
impl PartialOrd for SyncPacketType
impl Copy for SyncPacketType
impl Eq for SyncPacketType
impl StructuralPartialEq for SyncPacketType
Auto Trait Implementations§
impl Freeze for SyncPacketType
impl RefUnwindSafe for SyncPacketType
impl Send for SyncPacketType
impl Sync for SyncPacketType
impl Unpin for SyncPacketType
impl UnwindSafe for SyncPacketType
Blanket Implementations§
Source§impl<T> AsHciBytes for Twhere
T: FixedSizeValue,
impl<T> AsHciBytes for Twhere
T: FixedSizeValue,
Source§fn as_hci_bytes(&self) -> &[u8]
fn as_hci_bytes(&self) -> &[u8]
Get the byte representation of this type.
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<'de, T> FromHciBytes<'de> for Twhere
T: FixedSizeValue,
impl<'de, T> FromHciBytes<'de> for Twhere
T: FixedSizeValue,
Source§fn from_hci_bytes(data: &'de [u8]) -> Result<(T, &'de [u8]), FromHciBytesError>
fn from_hci_bytes(data: &'de [u8]) -> Result<(T, &'de [u8]), FromHciBytesError>
Deserialize bytes into a HCI type, return additional bytes.
Source§fn from_hci_bytes_complete(data: &'de [u8]) -> Result<Self, FromHciBytesError>
fn from_hci_bytes_complete(data: &'de [u8]) -> Result<Self, FromHciBytesError>
Deserialize bytes into a HCI type, must consume all bytes.
Source§impl<'de, T> ReadHci<'de> for Twhere
T: FixedSizeValue,
impl<'de, T> ReadHci<'de> for Twhere
T: FixedSizeValue,
Source§const MAX_LEN: usize = const MAX_LEN: usize = core::mem::size_of::<Self>();
const MAX_LEN: usize = const MAX_LEN: usize = core::mem::size_of::<Self>();
Max length read by this type.
Source§fn read_hci<R>(
reader: R,
buf: &'de mut [u8],
) -> Result<T, ReadHciError<<R as ErrorType>::Error>>where
R: Read,
fn read_hci<R>(
reader: R,
buf: &'de mut [u8],
) -> Result<T, ReadHciError<<R as ErrorType>::Error>>where
R: Read,
Read this type from the provided reader.
Source§async fn read_hci_async<R>(
reader: R,
buf: &'de mut [u8],
) -> Result<T, ReadHciError<<R as ErrorType>::Error>>where
R: Read,
async fn read_hci_async<R>(
reader: R,
buf: &'de mut [u8],
) -> Result<T, ReadHciError<<R as ErrorType>::Error>>where
R: Read,
Read this type from the provided reader, async version.