ByteAlignedValue

Trait ByteAlignedValue 

Source
pub unsafe trait ByteAlignedValue: FixedSizeValue {
    // Provided method
    fn ref_from_hci_bytes(
        data: &[u8],
    ) -> Result<(&Self, &[u8]), FromHciBytesError> { ... }
}
Expand description

Marker trait for FixedSizeValues that have byte alignment.

§Safety

  • Must have core::mem::align_of::<T>() == 1

Provided Methods§

Source

fn ref_from_hci_bytes(data: &[u8]) -> Result<(&Self, &[u8]), FromHciBytesError>

Obtain a reference to this type from a byte slice.

§Safety
  • Must have core::mem::align_of::<T>() == 1

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl ByteAlignedValue for bool

Source§

impl ByteAlignedValue for i8

Source§

impl ByteAlignedValue for u8

Source§

impl ByteAlignedValue for ()

Source§

impl<T: ByteAlignedValue, const N: usize> ByteAlignedValue for [T; N]

Implementors§

Source§

impl ByteAlignedValue for AdvFilterPolicy

Source§

impl ByteAlignedValue for AdvKind

Source§

impl ByteAlignedValue for AdvPhyOptions

Source§

impl ByteAlignedValue for AllowRoleSwitch

Source§

impl ByteAlignedValue for AuthenticationRequirements

Source§

impl ByteAlignedValue for ClockAccuracy

Source§

impl ByteAlignedValue for ClockType

Source§

impl ByteAlignedValue for ConnectionLinkType

Source§

impl ByteAlignedValue for ControllerToHostFlowControl

Source§

impl ByteAlignedValue for CteKind

Source§

impl ByteAlignedValue for DataStatus

Source§

impl ByteAlignedValue for DisconnectReason

Source§

impl ByteAlignedValue for EncryptionEnabledLevel

Source§

impl ByteAlignedValue for FilterDuplicates

Source§

impl ByteAlignedValue for FlowDirection

Source§

impl ByteAlignedValue for IoCapability

Source§

impl ByteAlignedValue for KeyFlag

Source§

impl ByteAlignedValue for KeypressNotificationType

Source§

impl ByteAlignedValue for LeAdvEventKind

Source§

impl ByteAlignedValue for LeConnRole

Source§

impl ByteAlignedValue for LePeriodicAdvSyncTransferMode

Source§

impl ByteAlignedValue for LeScanKind

Source§

impl ByteAlignedValue for LeTxPowerReportingReason

Source§

impl ByteAlignedValue for LinkKeyType

Source§

impl ByteAlignedValue for LinkType

Source§

impl ByteAlignedValue for MaxSlots

Source§

impl ByteAlignedValue for Mode

Source§

impl ByteAlignedValue for OobDataPresent

Source§

impl ByteAlignedValue for Operation

Source§

impl ByteAlignedValue for PacketStatus

Source§

impl ByteAlignedValue for PageScanRepetitionMode

Source§

impl ByteAlignedValue for PhyKind

Source§

impl ByteAlignedValue for PhyOptions

Source§

impl ByteAlignedValue for PowerLevelKind

Source§

impl ByteAlignedValue for PrivacyMode

Source§

impl ByteAlignedValue for RejectReason

Source§

impl ByteAlignedValue for RemoteConnectionParamsRejectReason

Source§

impl ByteAlignedValue for RetransmissionEffort

Source§

impl ByteAlignedValue for Role

Source§

impl ByteAlignedValue for ScanningFilterPolicy

Source§

impl ByteAlignedValue for ServiceType

Source§

impl ByteAlignedValue for ZoneEntered

Source§

impl ByteAlignedValue for HostBufferSizeParams

Source§

impl ByteAlignedValue for ReadAuthenticatedPayloadTimeoutReturn

Source§

impl ByteAlignedValue for ReadStoredLinkKeyParams

Source§

impl ByteAlignedValue for ReadStoredLinkKeyReturn

Source§

impl ByteAlignedValue for ReadTransmitPowerLevelParams

Source§

impl ByteAlignedValue for ReadTransmitPowerLevelReturn

Source§

impl ByteAlignedValue for WriteAuthenticatedPayloadTimeoutParams

Source§

impl ByteAlignedValue for ReadLocalVersionInformationReturn

Source§

impl ByteAlignedValue for LeAddDeviceToFilterAcceptListParams

Source§

impl ByteAlignedValue for LeAddDeviceToPeriodicAdvListParams

Source§

impl ByteAlignedValue for LeAddDeviceToResolvingListParams

Source§

impl ByteAlignedValue for LeConnCteResponseEnableParams

Source§

impl ByteAlignedValue for LeConnUpdateParams

Source§

impl ByteAlignedValue for LeCreateConnParams

Source§

impl ByteAlignedValue for LeEnableEncryptionParams

Source§

impl ByteAlignedValue for LeEncryptParams

Source§

impl ByteAlignedValue for LeEnhancedReadTransmitPowerLevelParams

Source§

impl ByteAlignedValue for LeEnhancedReadTransmitPowerLevelReturn

Source§

impl ByteAlignedValue for LeLongTermKeyRequestReplyParams

Source§

impl ByteAlignedValue for LePeriodicAdvCreateSyncParams

Source§

impl ByteAlignedValue for LePeriodicAdvSetInfoTransferParams

Source§

impl ByteAlignedValue for LePeriodicAdvSyncTransferParams

Source§

impl ByteAlignedValue for LeReadAntennaInformationReturn

Source§

impl ByteAlignedValue for LeReadBufferSizeReturn

Source§

impl ByteAlignedValue for LeReadChannelMapReturn

Source§

impl ByteAlignedValue for LeReadMaxDataLengthReturn

Source§

impl ByteAlignedValue for LeReadPhyReturn

Source§

impl ByteAlignedValue for LeReadRemoteTransmitPowerLevelParams

Source§

impl ByteAlignedValue for LeReadRfPathCompensationReturn

Source§

impl ByteAlignedValue for LeReadSuggestedDefaultDataLengthReturn

Source§

impl ByteAlignedValue for LeReadTransmitPowerReturn

Source§

impl ByteAlignedValue for LeRemoteConnectionParameterRequestNegativeReplyParams

Source§

impl ByteAlignedValue for LeRemoteConnectionParameterRequestReplyParams

Source§

impl ByteAlignedValue for LeRemoveDeviceFromFilterAcceptListParams

Source§

impl ByteAlignedValue for LeRemoveDeviceFromPeriodicAdvListParams

Source§

impl ByteAlignedValue for LeRemoveDeviceFromResolvingListParams

Source§

impl ByteAlignedValue for LeSetAdvDataParams

Source§

impl ByteAlignedValue for LeSetAdvParamsParams

Source§

impl ByteAlignedValue for LeSetAdvSetRandomAddrParams

Source§

impl ByteAlignedValue for LeSetConnectionlessCteTransmitEnableParams

Source§

impl ByteAlignedValue for LeSetDataLengthParams

Source§

impl ByteAlignedValue for LeSetDataRelatedAddrChangesParams

Source§

impl ByteAlignedValue for LeSetDefaultPeriodicAdvSyncTransferParamsParams

Source§

impl ByteAlignedValue for LeSetDefaultPhyParams

Source§

impl ByteAlignedValue for LeSetExtAdvParamsParams

Source§

impl ByteAlignedValue for LeSetExtAdvParamsV2Params

Source§

impl ByteAlignedValue for LeSetExtScanEnableParams

Source§

impl ByteAlignedValue for LeSetHostFeatureParams

Source§

impl ByteAlignedValue for LeSetHostFeatureV2Params

Source§

impl ByteAlignedValue for LeSetPathLossReportingEnableParams

Source§

impl ByteAlignedValue for LeSetPathLossReportingParamsParams

Source§

impl ByteAlignedValue for LeSetPeriodicAdvEnableParams

Source§

impl ByteAlignedValue for LeSetPeriodicAdvParamsParams

Source§

impl ByteAlignedValue for LeSetPeriodicAdvParamsV2Params

Source§

impl ByteAlignedValue for LeSetPeriodicAdvReceiveEnableParams

Source§

impl ByteAlignedValue for LeSetPeriodicAdvSyncTransferParamsParams

Source§

impl ByteAlignedValue for LeSetPhyParams

Source§

impl ByteAlignedValue for LeSetPrivacyModeParams

Source§

impl ByteAlignedValue for LeSetScanEnableParams

Source§

impl ByteAlignedValue for LeSetScanParamsParams

Source§

impl ByteAlignedValue for LeSetScanResponseDataParams

Source§

impl ByteAlignedValue for LeSetTransmitPowerReportingEnableParams

Source§

impl ByteAlignedValue for LeWriteRfPathCompensationParams

Source§

impl ByteAlignedValue for LeWriteSuggestedDefaultDataLengthParams

Source§

impl ByteAlignedValue for AcceptConnectionRequestParams

Source§

impl ByteAlignedValue for AcceptSynchronousConnectionRequestParams

Source§

impl ByteAlignedValue for ChangeConnectionPacketTypeParams

Source§

impl ByteAlignedValue for CreateConnectionParams

Source§

impl ByteAlignedValue for DisconnectParams

Source§

impl ByteAlignedValue for InquiryParams

Source§

impl ByteAlignedValue for IoCapabilityRequestNegativeReplyParams

Source§

impl ByteAlignedValue for IoCapabilityRequestReplyParams

Source§

impl ByteAlignedValue for LinkKeyRequestReplyParams

Source§

impl ByteAlignedValue for LinkKeySelectionParams

Source§

impl ByteAlignedValue for PinCodeRequestReplyParams

Source§

impl ByteAlignedValue for ReadLmpHandleReturn

Source§

impl ByteAlignedValue for ReadRemoteExtendedFeaturesParams

Source§

impl ByteAlignedValue for ReceiveSynchronizationTrainParams

Source§

impl ByteAlignedValue for RejectConnectionRequestParams

Source§

impl ByteAlignedValue for RejectSynchronousConnectionRequestParams

Source§

impl ByteAlignedValue for RemoteNameRequestParams

Source§

impl ByteAlignedValue for RemoteOobDataRequestReplyParams

Source§

impl ByteAlignedValue for RemoteOobExtendedDataRequestReplyParams

Source§

impl ByteAlignedValue for SetConnectionEncryptionParams

Source§

impl ByteAlignedValue for SetConnectionlessPeripheralBroadcastParams

Source§

impl ByteAlignedValue for SetConnectionlessPeripheralBroadcastReceiveParams

Source§

impl ByteAlignedValue for SetConnectionlessPeripheralBroadcastReceiveReturn

Source§

impl ByteAlignedValue for SetConnectionlessPeripheralBroadcastReturn

Source§

impl ByteAlignedValue for SetupSynchronousConnectionParams

Source§

impl ByteAlignedValue for TruncatedPageParams

Source§

impl ByteAlignedValue for UserPasskeyRequestReplyParams

Source§

impl ByteAlignedValue for ReadRssiReturn

Source§

impl ByteAlignedValue for AclPacketHeader

Source§

impl ByteAlignedValue for IsoPacketHeader

Source§

impl ByteAlignedValue for SyncPacketHeader

Source§

impl ByteAlignedValue for EventPacketHeader

Source§

impl ByteAlignedValue for AddrKind

Source§

impl ByteAlignedValue for AdvChannelMap

Source§

impl ByteAlignedValue for AdvEventProps

Source§

impl ByteAlignedValue for AdvHandle

Source§

impl ByteAlignedValue for AdvSet

Source§

impl ByteAlignedValue for AllPhys

Source§

impl ByteAlignedValue for BdAddr

Source§

impl ByteAlignedValue for ChannelMap

Source§

impl ByteAlignedValue for ClockOffset

Source§

impl ByteAlignedValue for CmdMask

Source§

impl ByteAlignedValue for CoreSpecificationVersion

Source§

impl ByteAlignedValue for CteMask

Source§

impl ByteAlignedValue for EnhancedAcceptSynchronousConnectionRequestParams

Source§

impl ByteAlignedValue for EnhancedSetupSynchronousConnectionParams

Source§

impl ByteAlignedValue for EventMask

Source§

impl ByteAlignedValue for EventMaskPage2

Source§

impl ByteAlignedValue for InitiatingPhy

Source§

impl ByteAlignedValue for LeDataRelatedAddrChangeReasons

Source§

impl ByteAlignedValue for LeEventMask

Source§

impl ByteAlignedValue for LeExtAdvEventKind

Source§

impl ByteAlignedValue for LeFeatureMask

Source§

impl ByteAlignedValue for LePeriodicAdvCreateSyncOptions

Source§

impl ByteAlignedValue for LePeriodicAdvReceiveEnable

Source§

impl ByteAlignedValue for LmpFeatureMask

Source§

impl ByteAlignedValue for PacketType

Source§

impl ByteAlignedValue for PeriodicAdvProps

Source§

impl ByteAlignedValue for PhyMask

Source§

impl ByteAlignedValue for ScanningPhy

Source§

impl ByteAlignedValue for Status

Source§

impl ByteAlignedValue for SwitchingSamplingRates

Source§

impl ByteAlignedValue for SyncPacketType

Source§

impl ByteAlignedValue for VoiceSetting

Source§

impl<const US: u16> ByteAlignedValue for ExtDuration<US>