[−][src]Struct async_coap::send_desc::AddOption
Combinator for Send Descriptors created by SendDescExt::add_option
.
Trait Implementations
impl<SD: SendDescUnicast, K, I: Send, IC> SendDescUnicast for AddOption<SD, K, I, IC>
[src]
fn block2<IC, R, TP>(self, block2: Option<BlockInfo>) -> UnicastBlock2<Self, IC> where
IC: InboundContext,
R: Send,
TP: TransParams,
Self: SendDesc<IC, R, TP> + Sized,
[src]
IC: InboundContext,
R: Send,
TP: TransParams,
Self: SendDesc<IC, R, TP> + Sized,
Returns a send descriptor that will perform Block2 processing. Read more
impl<SD: SendDescMulticast, K, I: Send, IC> SendDescMulticast for AddOption<SD, K, I, IC>
[src]
impl<SD: Debug, K: Debug, I: Debug + Send, IC: Debug> Debug for AddOption<SD, K, I, IC>
[src]
Auto Trait Implementations
impl<SD, K, I, IC> Unpin for AddOption<SD, K, I, IC> where
I: Unpin,
IC: Unpin,
SD: Unpin,
I: Unpin,
IC: Unpin,
SD: Unpin,
impl<SD, K, I, IC> !Sync for AddOption<SD, K, I, IC>
impl<SD, K, I, IC> Send for AddOption<SD, K, I, IC> where
IC: Send,
SD: Send,
IC: Send,
SD: Send,
impl<SD, K, I, IC> UnwindSafe for AddOption<SD, K, I, IC> where
I: UnwindSafe,
IC: UnwindSafe,
K: RefUnwindSafe,
SD: UnwindSafe,
I: UnwindSafe,
IC: UnwindSafe,
K: RefUnwindSafe,
SD: UnwindSafe,
impl<SD, K, I, IC> RefUnwindSafe for AddOption<SD, K, I, IC> where
I: RefUnwindSafe,
IC: RefUnwindSafe,
K: RefUnwindSafe,
SD: RefUnwindSafe,
I: RefUnwindSafe,
IC: RefUnwindSafe,
K: RefUnwindSafe,
SD: RefUnwindSafe,
Blanket Implementations
impl<T, IC, R, TP> SendDescExt<IC, R, TP> for T where
IC: InboundContext,
R: Send,
T: SendDesc<IC, R, TP>,
TP: TransParams,
[src]
IC: InboundContext,
R: Send,
T: SendDesc<IC, R, TP>,
TP: TransParams,
fn add_option_iter<K, I>(
self,
key: OptionKey<K>,
viter: I
) -> AddOption<Self, K, I, IC> where
I: IntoIterator<Item = K> + Send + Clone,
K: Send + Clone,
[src]
self,
key: OptionKey<K>,
viter: I
) -> AddOption<Self, K, I, IC> where
I: IntoIterator<Item = K> + Send + Clone,
K: Send + Clone,
Adds zero or more instances of the option key
, using values coming from viter
. Read more
fn add_option<K>(
self,
key: OptionKey<K>,
value: K
) -> AddOption<Self, K, Once<K>, IC> where
K: Send + Clone,
[src]
self,
key: OptionKey<K>,
value: K
) -> AddOption<Self, K, Once<K>, IC> where
K: Send + Clone,
Adds one instance of the option key
with a value of value
.
fn accept(
self,
accept: ContentFormat
) -> AddOption<Self, ContentFormat, Once<ContentFormat>, IC>
[src]
self,
accept: ContentFormat
) -> AddOption<Self, ContentFormat, Once<ContentFormat>, IC>
Adds an Accept option with the given ContentFormat
.
fn content_format(
self,
content_format: ContentFormat
) -> AddOption<Self, ContentFormat, Once<ContentFormat>, IC>
[src]
self,
content_format: ContentFormat
) -> AddOption<Self, ContentFormat, Once<ContentFormat>, IC>
Adds an Content-Format option with the given ContentFormat
.
fn use_handler<F, FR>(self, handler: F) -> Handler<Self, F> where
F: FnMut(Result<&dyn InboundContext<SocketAddr = IC::SocketAddr>, Error>) -> Result<ResponseStatus<FR>, Error> + Send,
FR: Send,
[src]
F: FnMut(Result<&dyn InboundContext<SocketAddr = IC::SocketAddr>, Error>) -> Result<ResponseStatus<FR>, Error> + Send,
FR: Send,
Adds a handler function to be called when a response message has been received (or when an error has occurred). Read more
fn emit_any_response(self) -> EmitAnyResponse<Self>
[src]
Updates the send descriptor chain to emit any received message as a result, even if that message has a message code that indicates an error. Read more
fn emit_successful_response(self) -> EmitSuccessfulResponse<Self>
[src]
Updates the send descriptor chain to emit received message as a result, but only if that message has a message code that indicates success. Read more
fn emit_msg_code(self) -> EmitMsgCode<Self>
[src]
Updates the send descriptor chain to emit only the message code of the received response. Read more
fn include_socket_addr(self) -> IncludeSocketAddr<Self>
[src]
Updates the send descriptor chain to also emit the SocketAddr of the sender of the response, resulting in tuple return type. Read more
fn inspect<F>(self, inspect: F) -> Inspect<Self, F> where
F: FnMut(&dyn InboundContext<SocketAddr = IC::SocketAddr>) + Send,
[src]
F: FnMut(&dyn InboundContext<SocketAddr = IC::SocketAddr>) + Send,
Adds an inspection closure that will be called for each received response message. Read more
fn payload_writer<F>(self, writer: F) -> PayloadWriter<Self, F> where
F: Fn(&mut dyn MessageWrite) -> Result<(), Error> + Send,
[src]
F: Fn(&mut dyn MessageWrite) -> Result<(), Error> + Send,
Adds a closure that writes to the payload of the outbound message.
fn uri_host_path<T: Into<RelRefBuf>>(
self,
host: Option<String>,
uri_path: T
) -> UriHostPath<Self, IC>
[src]
self,
host: Option<String>,
uri_path: T
) -> UriHostPath<Self, IC>
Allows you to specify the URI_HOST, URI_PATH, and URI_QUERY option values in a more convenient way than using add_option_iter
manually. Read more
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,