pub struct SendCommandBuilder<S: State = Empty> { /* private fields */ }Expand description
Use builder syntax to set the inputs and finish with build().
Implementations§
Source§impl<S: State> SendCommandBuilder<S>
impl<S: State> SendCommandBuilder<S>
Sourcepub fn build(self) -> SendCommandwhere
S: IsComplete,
pub fn build(self) -> SendCommandwhere
S: IsComplete,
Finish building and return the requested object
Sourcepub fn slot(self, value: Slot) -> SendCommandBuilder<SetSlot<S>>
pub fn slot(self, value: Slot) -> SendCommandBuilder<SetSlot<S>>
Required.
Sourcepub fn action(self, value: SendAction) -> SendCommandBuilder<SetAction<S>>
pub fn action(self, value: SendAction) -> SendCommandBuilder<SetAction<S>>
Required.
Sourcepub fn retry(self, value: RetryPolicy) -> SendCommandBuilder<SetRetry<S>>
pub fn retry(self, value: RetryPolicy) -> SendCommandBuilder<SetRetry<S>>
Sourcepub fn maybe_retry(
self,
value: Option<RetryPolicy>,
) -> SendCommandBuilder<SetRetry<S>>
pub fn maybe_retry( self, value: Option<RetryPolicy>, ) -> SendCommandBuilder<SetRetry<S>>
Auto Trait Implementations§
impl<S> Freeze for SendCommandBuilder<S>
impl<S> RefUnwindSafe for SendCommandBuilder<S>
impl<S> Send for SendCommandBuilder<S>
impl<S> Sync for SendCommandBuilder<S>
impl<S> Unpin for SendCommandBuilder<S>
impl<S> UnsafeUnpin for SendCommandBuilder<S>
impl<S> UnwindSafe for SendCommandBuilder<S>
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