pub struct LESetAdvertisingParametersCommandWriter<S: MutStorage, ST: State = UncheckedState> { /* private fields */ }Implementations§
Source§impl<S: MutStorage, ST: State> LESetAdvertisingParametersCommandWriter<S, ST>
impl<S: MutStorage, ST: State> LESetAdvertisingParametersCommandWriter<S, ST>
Sourcepub unsafe fn new_in_state(storage: S) -> Self
pub unsafe fn new_in_state(storage: S) -> Self
Constructs a writer in a specific typestate.
§Safety
The caller must ensure that storage satisfies the layout invariants for ST.
pub fn into_storage(self) -> S
Sourcepub fn into_view(self) -> LESetAdvertisingParametersCommand<S, ST>
pub fn into_view(self) -> LESetAdvertisingParametersCommand<S, ST>
Converts the writer into an immutable view in the same typestate.
Sourcepub fn as_view(&self) -> LESetAdvertisingParametersCommand<S::Sliced<'_>, ST>
pub fn as_view(&self) -> LESetAdvertisingParametersCommand<S::Sliced<'_>, ST>
Borrows the writer as an immutable view in the same typestate.
pub fn write_advertising_interval_min( self, val: <SizeSelector<16> as SmallestUInt>::T, ) -> LESetAdvertisingParametersCommandWriter<S, ST::OnValidMutation>
pub fn write_advertising_interval_max( self, val: <SizeSelector<16> as SmallestUInt>::T, ) -> LESetAdvertisingParametersCommandWriter<S, ST::OnValidMutation>
pub fn write_adv_type( self, val: LEAdvertisingType, ) -> LESetAdvertisingParametersCommandWriter<S, ST::OnValidMutation>
pub fn write_own_address_type( self, val: LEOwnAddressType, ) -> LESetAdvertisingParametersCommandWriter<S, ST::OnValidMutation>
pub fn write_peer_address_type( self, val: LEPeerAddressType, ) -> LESetAdvertisingParametersCommandWriter<S, ST::OnValidMutation>
pub fn write_advertising_filter_policy( self, val: LEAdvertisingFilterPolicy, ) -> LESetAdvertisingParametersCommandWriter<S, ST::OnValidMutation>
Trait Implementations§
Source§impl<S: MutStorage> CheckComplete for LESetAdvertisingParametersCommandWriter<S, UncheckedState>
impl<S: MutStorage> CheckComplete for LESetAdvertisingParametersCommandWriter<S, UncheckedState>
type Completed = LESetAdvertisingParametersCommandWriter<S, CompleteState>
fn check_complete(self) -> Result<Self::Completed, Error>
Source§impl<S: MutStorage> CheckOk for LESetAdvertisingParametersCommandWriter<S, UncheckedState>
impl<S: MutStorage> CheckOk for LESetAdvertisingParametersCommandWriter<S, UncheckedState>
Source§impl<S: MutStorage> CheckOk for LESetAdvertisingParametersCommandWriter<S, CompleteState>
impl<S: MutStorage> CheckOk for LESetAdvertisingParametersCommandWriter<S, CompleteState>
Source§impl<S: MutStorage> CheckOk for LESetAdvertisingParametersCommandWriter<S, OkState>
impl<S: MutStorage> CheckOk for LESetAdvertisingParametersCommandWriter<S, OkState>
Source§impl<S: MutStorage, ST: State> View for LESetAdvertisingParametersCommandWriter<S, ST>
impl<S: MutStorage, ST: State> View for LESetAdvertisingParametersCommandWriter<S, ST>
Auto Trait Implementations§
impl<S, ST> Freeze for LESetAdvertisingParametersCommandWriter<S, ST>where
S: Freeze,
impl<S, ST> RefUnwindSafe for LESetAdvertisingParametersCommandWriter<S, ST>where
S: RefUnwindSafe,
ST: RefUnwindSafe,
impl<S, ST> Send for LESetAdvertisingParametersCommandWriter<S, ST>
impl<S, ST> Sync for LESetAdvertisingParametersCommandWriter<S, ST>
impl<S, ST> Unpin for LESetAdvertisingParametersCommandWriter<S, ST>
impl<S, ST> UnsafeUnpin for LESetAdvertisingParametersCommandWriter<S, ST>where
S: UnsafeUnpin,
impl<S, ST> UnwindSafe for LESetAdvertisingParametersCommandWriter<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