pub struct CoreSpecificationVersion(/* private fields */);
Expand description
CoreSpecificationVersion
Implementations§
Source§impl CoreSpecificationVersion
impl CoreSpecificationVersion
Sourcepub fn into_inner(self) -> u8
pub fn into_inner(self) -> u8
Get inner representation
Source§impl CoreSpecificationVersion
impl CoreSpecificationVersion
pub const VERSION_1_0B: CoreSpecificationVersion
pub const VERSION_1_1: CoreSpecificationVersion
pub const VERSION_1_2: CoreSpecificationVersion
pub const VERSION_2_0_EDR: CoreSpecificationVersion
pub const VERSION_2_1_EDR: CoreSpecificationVersion
pub const VERSION_3_0_HS: CoreSpecificationVersion
pub const VERSION_4_0: CoreSpecificationVersion
pub const VERSION_4_1: CoreSpecificationVersion
pub const VERSION_4_2: CoreSpecificationVersion
pub const VERSION_5_0: CoreSpecificationVersion
pub const VERSION_5_1: CoreSpecificationVersion
pub const VERSION_5_2: CoreSpecificationVersion
pub const VERSION_5_3: CoreSpecificationVersion
pub const VERSION_5_4: CoreSpecificationVersion
Trait Implementations§
Source§impl ByteAlignedValue for CoreSpecificationVersion
impl ByteAlignedValue for CoreSpecificationVersion
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 CoreSpecificationVersion
impl Clone for CoreSpecificationVersion
Source§fn clone(&self) -> CoreSpecificationVersion
fn clone(&self) -> CoreSpecificationVersion
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 CoreSpecificationVersion
impl Debug for CoreSpecificationVersion
Source§impl Default for CoreSpecificationVersion
impl Default for CoreSpecificationVersion
Source§fn default() -> CoreSpecificationVersion
fn default() -> CoreSpecificationVersion
Returns the “default value” for a type. Read more
Source§impl<'de> FromHciBytes<'de> for &'de CoreSpecificationVersion
impl<'de> FromHciBytes<'de> for &'de CoreSpecificationVersion
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 CoreSpecificationVersion
impl Hash for CoreSpecificationVersion
Source§impl Ord for CoreSpecificationVersion
impl Ord for CoreSpecificationVersion
Source§fn cmp(&self, other: &CoreSpecificationVersion) -> Ordering
fn cmp(&self, other: &CoreSpecificationVersion) -> 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 CoreSpecificationVersion
impl PartialEq for CoreSpecificationVersion
Source§impl PartialOrd for CoreSpecificationVersion
impl PartialOrd for CoreSpecificationVersion
impl Copy for CoreSpecificationVersion
impl Eq for CoreSpecificationVersion
impl StructuralPartialEq for CoreSpecificationVersion
Auto Trait Implementations§
impl Freeze for CoreSpecificationVersion
impl RefUnwindSafe for CoreSpecificationVersion
impl Send for CoreSpecificationVersion
impl Sync for CoreSpecificationVersion
impl Unpin for CoreSpecificationVersion
impl UnwindSafe for CoreSpecificationVersion
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.