[][src]Struct async_coap::send_desc::UriHostPath

pub struct UriHostPath<SD, IC> { /* fields omitted */ }

Combinator for Send Descriptors created by SendDescExt::uri_host_path.

Trait Implementations

impl<SD: SendDescUnicast, IC> SendDescUnicast for UriHostPath<SD, 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]

Returns a send descriptor that will perform Block2 processing. Read more

impl<SD: SendDescMulticast, IC> SendDescMulticast for UriHostPath<SD, IC>[src]

impl<SD: Debug, IC: Debug> Debug for UriHostPath<SD, IC>[src]

Auto Trait Implementations

impl<SD, IC> Send for UriHostPath<SD, IC> where
    IC: Send,
    SD: Send

impl<SD, IC> Unpin for UriHostPath<SD, IC> where
    IC: Unpin,
    SD: Unpin

impl<SD, IC> Sync for UriHostPath<SD, IC> where
    IC: Sync,
    SD: Sync

impl<SD, IC> UnwindSafe for UriHostPath<SD, IC> where
    IC: UnwindSafe,
    SD: UnwindSafe

impl<SD, IC> RefUnwindSafe for UriHostPath<SD, IC> where
    IC: 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]

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]

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]

Adds one instance of the option key with a value of value.

fn accept(
    self,
    accept: ContentFormat
) -> AddOption<Self, ContentFormat, Once<ContentFormat>, IC>
[src]

Adds an Accept option with the given ContentFormat.

fn content_format(
    self,
    content_format: ContentFormat
) -> AddOption<Self, ContentFormat, Once<ContentFormat>, IC>
[src]

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]

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]

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]

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]

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> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,