pub struct LECreateConnectionCommand<S: Storage, ST: State = UncheckedState> { /* private fields */ }Implementations§
Source§impl<S: Storage> LECreateConnectionCommand<S, UncheckedState>
impl<S: Storage> LECreateConnectionCommand<S, UncheckedState>
Source§impl<S: Storage, ST: State> LECreateConnectionCommand<S, ST>
impl<S: Storage, ST: State> LECreateConnectionCommand<S, ST>
Sourcepub unsafe fn new_in_state(storage: S) -> Self
pub unsafe fn new_in_state(storage: S) -> Self
Constructs a view in a specific typestate.
§Safety
The caller must ensure that storage satisfies the layout invariants for ST.
pub fn into_storage(self) -> S
pub fn hdr_size(&self) -> VirtualField<u64>
pub fn header(&self) -> CommandHeader<S::Sliced<'_>, UncheckedState>
pub fn le_scan_interval(&self) -> UInt<16, LittleEndian, S::Sliced<'_>, ST>
pub fn le_scan_window(&self) -> UInt<16, LittleEndian, S::Sliced<'_>, ST>
pub fn initiator_filter_policy( &self, ) -> EnumView<GenericEnableParam, UInt<8, LittleEndian, S::Sliced<'_>, ST>>
pub fn peer_address_type( &self, ) -> EnumView<LEAddressType, UInt<8, LittleEndian, S::Sliced<'_>, ST>>
pub fn peer_address(&self) -> BdAddr<S::Sliced<'_>, UncheckedState>
pub fn own_address_type( &self, ) -> EnumView<LEOwnAddressType, UInt<8, LittleEndian, S::Sliced<'_>, ST>>
pub fn connection_interval_min( &self, ) -> UInt<16, LittleEndian, S::Sliced<'_>, ST>
pub fn connection_interval_max( &self, ) -> UInt<16, LittleEndian, S::Sliced<'_>, ST>
pub fn max_latency(&self) -> UInt<16, LittleEndian, S::Sliced<'_>, ST>
pub fn supervision_timeout(&self) -> UInt<16, LittleEndian, S::Sliced<'_>, ST>
pub fn min_connection_event_length( &self, ) -> UInt<16, LittleEndian, S::Sliced<'_>, ST>
pub fn max_connection_event_length( &self, ) -> UInt<16, LittleEndian, S::Sliced<'_>, ST>
Trait Implementations§
Source§impl<S: Storage> CheckComplete for LECreateConnectionCommand<S, UncheckedState>
impl<S: Storage> CheckComplete for LECreateConnectionCommand<S, UncheckedState>
type Completed = LECreateConnectionCommand<S, CompleteState>
fn check_complete(self) -> Result<Self::Completed, Error>
Source§impl<S: Storage> CheckOk for LECreateConnectionCommand<S, UncheckedState>
impl<S: Storage> CheckOk for LECreateConnectionCommand<S, UncheckedState>
Source§impl<S: Storage> CheckOk for LECreateConnectionCommand<S, CompleteState>
impl<S: Storage> CheckOk for LECreateConnectionCommand<S, CompleteState>
Auto Trait Implementations§
impl<S, ST> Freeze for LECreateConnectionCommand<S, ST>where
S: Freeze,
impl<S, ST> RefUnwindSafe for LECreateConnectionCommand<S, ST>where
S: RefUnwindSafe,
ST: RefUnwindSafe,
impl<S, ST> Send for LECreateConnectionCommand<S, ST>
impl<S, ST> Sync for LECreateConnectionCommand<S, ST>
impl<S, ST> Unpin for LECreateConnectionCommand<S, ST>
impl<S, ST> UnsafeUnpin for LECreateConnectionCommand<S, ST>where
S: UnsafeUnpin,
impl<S, ST> UnwindSafe for LECreateConnectionCommand<S, ST>where
S: UnwindSafe,
ST: UnwindSafe,
Blanket Implementations§
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