[−][src]Enum async_coap::send_desc::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
Auto Trait Implementations
impl Send for CoapRequest
impl Unpin for CoapRequest
impl Sync for CoapRequest
impl RefUnwindSafe for CoapRequest
impl UnwindSafe for CoapRequest
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
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>,