pub enum CoapRequest {}
Expand description
Seed combinator used for creating send descriptors for CoAP requests.
Implementations§
Source§impl CoapRequest
impl CoapRequest
Sourcepub fn get<IC>() -> SendGet<IC>
pub fn get<IC>() -> SendGet<IC>
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).
Sourcepub fn observe<IC>() -> SendObserve<IC>
pub fn observe<IC>() -> SendObserve<IC>
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).
Sourcepub fn post<IC>() -> SendPost<IC>
pub fn post<IC>() -> SendPost<IC>
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).
Sourcepub fn put<IC>() -> SendPut<IC>
pub fn put<IC>() -> SendPut<IC>
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).
Sourcepub fn delete<IC>() -> SendDelete<IC>
pub fn delete<IC>() -> SendDelete<IC>
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).
Sourcepub fn method<IC>(msg_code: MsgCode) -> CoapRequestMethod<IC>
pub fn method<IC>(msg_code: MsgCode) -> CoapRequestMethod<IC>
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).