pub struct ClockOffset(/* private fields */);
Expand description
ClockOffset
Implementations§
Source§impl ClockOffset
impl ClockOffset
Sourcepub fn into_inner(self) -> [u8; 2]
pub fn into_inner(self) -> [u8; 2]
Get the inner representation.
pub const fn clock_offset_0(&self) -> bool
pub const fn set_clock_offset_0(self, val: bool) -> Self
pub const fn clock_offset_1(&self) -> bool
pub const fn set_clock_offset_1(self, val: bool) -> Self
pub const fn clock_offset_2(&self) -> bool
pub const fn set_clock_offset_2(self, val: bool) -> Self
pub const fn clock_offset_3(&self) -> bool
pub const fn set_clock_offset_3(self, val: bool) -> Self
pub const fn clock_offset_4(&self) -> bool
pub const fn set_clock_offset_4(self, val: bool) -> Self
pub const fn clock_offset_5(&self) -> bool
pub const fn set_clock_offset_5(self, val: bool) -> Self
pub const fn clock_offset_6(&self) -> bool
pub const fn set_clock_offset_6(self, val: bool) -> Self
pub const fn clock_offset_7(&self) -> bool
pub const fn set_clock_offset_7(self, val: bool) -> Self
pub const fn clock_offset_8(&self) -> bool
pub const fn set_clock_offset_8(self, val: bool) -> Self
pub const fn clock_offset_9(&self) -> bool
pub const fn set_clock_offset_9(self, val: bool) -> Self
pub const fn clock_offset_10(&self) -> bool
pub const fn set_clock_offset_10(self, val: bool) -> Self
pub const fn clock_offset_11(&self) -> bool
pub const fn set_clock_offset_11(self, val: bool) -> Self
pub const fn clock_offset_12(&self) -> bool
pub const fn set_clock_offset_12(self, val: bool) -> Self
pub const fn clock_offset_13(&self) -> bool
pub const fn set_clock_offset_13(self, val: bool) -> Self
pub const fn clock_offset_14(&self) -> bool
pub const fn set_clock_offset_14(self, val: bool) -> Self
pub const fn clock_offset_valid_flag(&self) -> bool
pub const fn set_clock_offset_valid_flag(self, val: bool) -> Self
Trait Implementations§
Source§impl ByteAlignedValue for ClockOffset
impl ByteAlignedValue for ClockOffset
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 ClockOffset
impl Clone for ClockOffset
Source§fn clone(&self) -> ClockOffset
fn clone(&self) -> ClockOffset
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 ClockOffset
impl Debug for ClockOffset
Source§impl Default for ClockOffset
impl Default for ClockOffset
Source§fn default() -> ClockOffset
fn default() -> ClockOffset
Returns the “default value” for a type. Read more
Source§impl FixedSizeValue for ClockOffset
impl FixedSizeValue for ClockOffset
Source§impl<'de> FromHciBytes<'de> for &'de ClockOffset
impl<'de> FromHciBytes<'de> for &'de ClockOffset
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 ClockOffset
impl Hash for ClockOffset
Source§impl Ord for ClockOffset
impl Ord for ClockOffset
Source§fn cmp(&self, other: &ClockOffset) -> Ordering
fn cmp(&self, other: &ClockOffset) -> 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 ClockOffset
impl PartialEq for ClockOffset
Source§impl PartialOrd for ClockOffset
impl PartialOrd for ClockOffset
impl Copy for ClockOffset
impl Eq for ClockOffset
impl StructuralPartialEq for ClockOffset
Auto Trait Implementations§
impl Freeze for ClockOffset
impl RefUnwindSafe for ClockOffset
impl Send for ClockOffset
impl Sync for ClockOffset
impl Unpin for ClockOffset
impl UnwindSafe for ClockOffset
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.