[][src]Enum async_coap::send_desc::CoapRequest

pub enum CoapRequest {}

Seed combinator used for creating send descriptors for CoAP requests.

Methods

impl CoapRequest[src]

pub fn get<IC>() -> SendGet<IC>[src]

Constructs a simple GET send descriptor.

The generic parameter IC can (for the most part) be ignored: the type will be inferred when the send descriptor is passed to LocalEndpoint::send (or one of its many variants).

pub fn observe<IC>() -> SendObserve<IC>[src]

Constructs a simple GET send descriptor configured for observing.

The generic parameter IC can (for the most part) be ignored: the type will be inferred when the send descriptor is passed to LocalEndpointExt::send_as_stream (or one of its many variants).

pub fn post<IC>() -> SendPost<IC>[src]

Constructs a simple POST send descriptor.

The generic parameter IC can (for the most part) be ignored: the type will be inferred when the send descriptor is passed to LocalEndpoint::send (or one of its many variants).

pub fn put<IC>() -> SendPut<IC>[src]

Constructs a simple PUT send descriptor.

The generic parameter IC can (for the most part) be ignored: the type will be inferred when the send descriptor is passed to LocalEndpoint::send (or one of its many variants).

pub fn delete<IC>() -> SendDelete<IC>[src]

Constructs a simple DELETE send descriptor.

The generic parameter IC can (for the most part) be ignored: the type will be inferred when the send descriptor is passed to LocalEndpoint::send (or one of its many variants).

pub fn method<IC>(msg_code: MsgCode) -> CoapRequestMethod<IC>[src]

Constructs a simple send descriptor with an arbitrary CoAP method code.

The value of msg_code is checked in debug mode to ensure it is a CoAP method. The value is not checked in release mode.

The generic parameter IC can (for the most part) be ignored: the type will be inferred when the send descriptor is passed to LocalEndpoint::send (or one of its many variants).

Trait Implementations

impl Debug for CoapRequest[src]

Auto Trait Implementations

Blanket Implementations

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

impl<T> From<T> for 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>,