#[non_exhaustive]pub struct SidewalkSendDataToDeviceBuilder { /* private fields */ }Expand description
A builder for SidewalkSendDataToDevice.
Implementations§
source§impl SidewalkSendDataToDeviceBuilder
impl SidewalkSendDataToDeviceBuilder
sourcepub fn message_type(self, input: MessageType) -> Self
pub fn message_type(self, input: MessageType) -> Self
Sidewalk device message type. Default value is CUSTOM_COMMAND_ID_NOTIFY.
sourcepub fn set_message_type(self, input: Option<MessageType>) -> Self
pub fn set_message_type(self, input: Option<MessageType>) -> Self
Sidewalk device message type. Default value is CUSTOM_COMMAND_ID_NOTIFY.
sourcepub fn get_message_type(&self) -> &Option<MessageType>
pub fn get_message_type(&self) -> &Option<MessageType>
Sidewalk device message type. Default value is CUSTOM_COMMAND_ID_NOTIFY.
sourcepub fn ack_mode_retry_duration_secs(self, input: i32) -> Self
pub fn ack_mode_retry_duration_secs(self, input: i32) -> Self
The duration of time in seconds to retry sending the ACK.
sourcepub fn set_ack_mode_retry_duration_secs(self, input: Option<i32>) -> Self
pub fn set_ack_mode_retry_duration_secs(self, input: Option<i32>) -> Self
The duration of time in seconds to retry sending the ACK.
sourcepub fn get_ack_mode_retry_duration_secs(&self) -> &Option<i32>
pub fn get_ack_mode_retry_duration_secs(&self) -> &Option<i32>
The duration of time in seconds to retry sending the ACK.
sourcepub fn build(self) -> SidewalkSendDataToDevice
pub fn build(self) -> SidewalkSendDataToDevice
Consumes the builder and constructs a SidewalkSendDataToDevice.
Trait Implementations§
source§impl Clone for SidewalkSendDataToDeviceBuilder
impl Clone for SidewalkSendDataToDeviceBuilder
source§fn clone(&self) -> SidewalkSendDataToDeviceBuilder
fn clone(&self) -> SidewalkSendDataToDeviceBuilder
Returns a copy 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 Default for SidewalkSendDataToDeviceBuilder
impl Default for SidewalkSendDataToDeviceBuilder
source§fn default() -> SidewalkSendDataToDeviceBuilder
fn default() -> SidewalkSendDataToDeviceBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for SidewalkSendDataToDeviceBuilder
impl PartialEq for SidewalkSendDataToDeviceBuilder
source§fn eq(&self, other: &SidewalkSendDataToDeviceBuilder) -> bool
fn eq(&self, other: &SidewalkSendDataToDeviceBuilder) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SidewalkSendDataToDeviceBuilder
Auto Trait Implementations§
impl Freeze for SidewalkSendDataToDeviceBuilder
impl RefUnwindSafe for SidewalkSendDataToDeviceBuilder
impl Send for SidewalkSendDataToDeviceBuilder
impl Sync for SidewalkSendDataToDeviceBuilder
impl Unpin for SidewalkSendDataToDeviceBuilder
impl UnwindSafe for SidewalkSendDataToDeviceBuilder
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.