Struct coap_lite::CoapRequest [−][src]
pub struct CoapRequest<Endpoint> {
pub message: Packet,
pub response: Option<CoapResponse>,
pub source: Option<Endpoint>,
}Expand description
The CoAP request.
Fields
message: Packetresponse: Option<CoapResponse>source: Option<Endpoint>Implementations
Creates a new request.
Creates a request from a packet.
Sets the method.
Returns the method.
Returns the flag in the Observe option.
Trait Implementations
Auto Trait Implementations
impl<Endpoint> RefUnwindSafe for CoapRequest<Endpoint> where
Endpoint: RefUnwindSafe,
impl<Endpoint> Send for CoapRequest<Endpoint> where
Endpoint: Send,
impl<Endpoint> Sync for CoapRequest<Endpoint> where
Endpoint: Sync,
impl<Endpoint> Unpin for CoapRequest<Endpoint> where
Endpoint: Unpin,
impl<Endpoint> UnwindSafe for CoapRequest<Endpoint> where
Endpoint: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more