Skip to main content

TryFromRaw

Trait TryFromRaw 

Source
pub trait TryFromRaw<T> {
    // Required method
    fn try_from_raw(val: T) -> Result<Self, Error<T>>
       where Self: Sized;
}

Required Methods§

Source

fn try_from_raw(val: T) -> Result<Self, Error<T>>
where Self: Sized,

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<V> TryFromRaw<V> for AclDataPacketBoundaryFlag
where V: Into<u64> + Copy,

Source§

impl<V> TryFromRaw<V> for AclDataPacketBroadcastFlag
where V: Into<u64> + Copy,

Source§

impl<V> TryFromRaw<V> for AttExecuteWriteFlag
where V: Into<u64> + Copy,

Source§

impl<V> TryFromRaw<V> for AttOpcode
where V: Into<u64> + Copy,

Source§

impl<V> TryFromRaw<V> for AttUuidFormat
where V: Into<u64> + Copy,

Source§

impl<V> TryFromRaw<V> for AudioVideoMinorDeviceClass
where V: Into<u64> + Copy,

Source§

impl<V> TryFromRaw<V> for AuthenticationRequirements
where V: Into<u64> + Copy,

Source§

impl<V> TryFromRaw<V> for CodingFormat
where V: Into<u64> + Copy,

Source§

impl<V> TryFromRaw<V> for CommonDataType
where V: Into<u64> + Copy,

Source§

impl<V> TryFromRaw<V> for ComputerMinorDeviceClass
where V: Into<u64> + Copy,

Source§

impl<V> TryFromRaw<V> for ConnectionRole
where V: Into<u64> + Copy,

Source§

impl<V> TryFromRaw<V> for DataPathDirection
where V: Into<u64> + Copy,

Source§

impl<V> TryFromRaw<V> for ErrorCode
where V: Into<u64> + Copy,

Source§

impl<V> TryFromRaw<V> for EventCode
where V: Into<u64> + Copy,

Source§

impl<V> TryFromRaw<V> for FlowControlMode
where V: Into<u64> + Copy,

Source§

impl<V> TryFromRaw<V> for GenericEnableParam
where V: Into<u64> + Copy,

Source§

impl<V> TryFromRaw<V> for GenericPresenceParam
where V: Into<u64> + Copy,

Source§

impl<V> TryFromRaw<V> for H4PacketType
where V: Into<u64> + Copy,

Source§

impl<V> TryFromRaw<V> for HealthMinorDeviceClass
where V: Into<u64> + Copy,

Source§

impl<V> TryFromRaw<V> for ImagingMinorDeviceClass
where V: Into<u64> + Copy,

Source§

impl<V> TryFromRaw<V> for InquiryAccessCode
where V: Into<u64> + Copy,

Source§

impl<V> TryFromRaw<V> for InquiryMode
where V: Into<u64> + Copy,

Source§

impl<V> TryFromRaw<V> for InquiryScanType
where V: Into<u64> + Copy,

Source§

impl<V> TryFromRaw<V> for IoCapability
where V: Into<u64> + Copy,

Source§

impl<V> TryFromRaw<V> for IsoDataPacketStatus
where V: Into<u64> + Copy,

Source§

impl<V> TryFromRaw<V> for IsoDataPbFlag
where V: Into<u64> + Copy,

Source§

impl<V> TryFromRaw<V> for L2capCommandRejectReasonCode
where V: Into<u64> + Copy,

Source§

impl<V> TryFromRaw<V> for L2capConfigurationOptionType
where V: Into<u64> + Copy,

Source§

impl<V> TryFromRaw<V> for L2capConfigurationResult
where V: Into<u64> + Copy,

Source§

impl<V> TryFromRaw<V> for L2capConnectionRspResultCode
where V: Into<u64> + Copy,

Source§

impl<V> TryFromRaw<V> for L2capConnectionRspStatusCode
where V: Into<u64> + Copy,

Source§

impl<V> TryFromRaw<V> for L2capFixedCid
where V: Into<u64> + Copy,

Source§

impl<V> TryFromRaw<V> for L2capFixedPsmCode
where V: Into<u64> + Copy,

Source§

impl<V> TryFromRaw<V> for L2capSignalingPacketCode
where V: Into<u64> + Copy,

Source§

impl<V> TryFromRaw<V> for LANMinorDeviceClass
where V: Into<u64> + Copy,

Source§

impl<V> TryFromRaw<V> for LEAddressType
where V: Into<u64> + Copy,

Source§

impl<V> TryFromRaw<V> for LEAdvertisingFilterPolicy
where V: Into<u64> + Copy,

Source§

impl<V> TryFromRaw<V> for LEAdvertisingType
where V: Into<u64> + Copy,

Source§

impl<V> TryFromRaw<V> for LECISFraming
where V: Into<u64> + Copy,

Source§

impl<V> TryFromRaw<V> for LECISPacking
where V: Into<u64> + Copy,

Source§

impl<V> TryFromRaw<V> for LEExtendedAddressType
where V: Into<u64> + Copy,

Source§

impl<V> TryFromRaw<V> for LEExtendedAdvFragmentPreference
where V: Into<u64> + Copy,

Source§

impl<V> TryFromRaw<V> for LEExtendedDuplicateFilteringOption
where V: Into<u64> + Copy,

Source§

impl<V> TryFromRaw<V> for LEOwnAddressType
where V: Into<u64> + Copy,

Source§

impl<V> TryFromRaw<V> for LEPeerAddressType
where V: Into<u64> + Copy,

Source§

impl<V> TryFromRaw<V> for LEPeerAddressTypeNoAnon
where V: Into<u64> + Copy,

Source§

impl<V> TryFromRaw<V> for LEPhy
where V: Into<u64> + Copy,

Source§

impl<V> TryFromRaw<V> for LEPrimaryAdvertisingPHY
where V: Into<u64> + Copy,

Source§

impl<V> TryFromRaw<V> for LEPrivacyMode
where V: Into<u64> + Copy,

Source§

impl<V> TryFromRaw<V> for LEScanFilterPolicy
where V: Into<u64> + Copy,

Source§

impl<V> TryFromRaw<V> for LEScanType
where V: Into<u64> + Copy,

Source§

impl<V> TryFromRaw<V> for LESecondaryAdvertisingPHY
where V: Into<u64> + Copy,

Source§

impl<V> TryFromRaw<V> for LESetExtendedAdvDataOp
where V: Into<u64> + Copy,

Source§

impl<V> TryFromRaw<V> for LESleepClockAccuracyRange
where V: Into<u64> + Copy,

Source§

impl<V> TryFromRaw<V> for LeSubEventCode
where V: Into<u64> + Copy,

Source§

impl<V> TryFromRaw<V> for LogicalTransportType
where V: Into<u64> + Copy,

Source§

impl<V> TryFromRaw<V> for MajorDeviceClass
where V: Into<u64> + Copy,

Source§

impl<V> TryFromRaw<V> for OobDataPresent
where V: Into<u64> + Copy,

Source§

impl<V> TryFromRaw<V> for OpCode
where V: Into<u64> + Copy,

Source§

impl<V> TryFromRaw<V> for PageScanRepetitionMode
where V: Into<u64> + Copy,

Source§

impl<V> TryFromRaw<V> for PageScanType
where V: Into<u64> + Copy,

Source§

impl<V> TryFromRaw<V> for PageTimeout
where V: Into<u64> + Copy,

Source§

impl<V> TryFromRaw<V> for PcmDataFormat
where V: Into<u64> + Copy,

Source§

impl<V> TryFromRaw<V> for PeriodicAdvertisingSyncTransferMode
where V: Into<u64> + Copy,

Source§

impl<V> TryFromRaw<V> for PeripheralMinorDeviceClass0
where V: Into<u64> + Copy,

Source§

impl<V> TryFromRaw<V> for PeripheralMinorDeviceClass1
where V: Into<u64> + Copy,

Source§

impl<V> TryFromRaw<V> for PhoneMinorDeviceClass
where V: Into<u64> + Copy,

Source§

impl<V> TryFromRaw<V> for PinType
where V: Into<u64> + Copy,

Source§

impl<V> TryFromRaw<V> for ScanInterval
where V: Into<u64> + Copy,

Source§

impl<V> TryFromRaw<V> for ScanRequestNotifications
where V: Into<u64> + Copy,

Source§

impl<V> TryFromRaw<V> for ScanWindow
where V: Into<u64> + Copy,

Source§

impl<V> TryFromRaw<V> for ScoDataPacketStatus
where V: Into<u64> + Copy,

Source§

impl<V> TryFromRaw<V> for ScoDataPath
where V: Into<u64> + Copy,

Source§

impl<V> TryFromRaw<V> for SimplePairingDebugModeType
where V: Into<u64> + Copy,

Source§

impl<V> TryFromRaw<V> for StatusCode
where V: Into<u64> + Copy,

Source§

impl<V> TryFromRaw<V> for SynchronousConnectionParameters_ScoRetransmissionEffort
where V: Into<u64> + Copy,

Source§

impl<V> TryFromRaw<V> for ToyMinorDeviceClass
where V: Into<u64> + Copy,

Source§

impl<V> TryFromRaw<V> for TsFlag
where V: Into<u64> + Copy,

Source§

impl<V> TryFromRaw<V> for WearableMinorDeviceClass
where V: Into<u64> + Copy,

Implementors§