[−][src]Struct coap_lite::CoapRequest
The CoAP request.
Fields
message: Packetresponse: Option<CoapResponse>source: Option<Endpoint>Implementations
impl<Endpoint> CoapRequest<Endpoint>[src]
pub fn new() -> CoapRequest<Endpoint>[src]
Creates a new request.
pub fn from_packet(packet: Packet, source: Endpoint) -> CoapRequest<Endpoint>[src]
Creates a request from a packet.
pub fn set_method(&mut self, method: Method)[src]
Sets the method.
pub fn get_method(&self) -> &Method[src]
Returns the method.
pub fn set_path(&mut self, path: &str)[src]
Sets the path.
pub fn get_path(&self) -> String[src]
Returns the path.
pub fn get_observe_flag(&self) -> Option<ObserveOption>[src]
Returns the flag in the Observe option.
Trait Implementations
impl<Endpoint: Clone> Clone for CoapRequest<Endpoint>[src]
pub fn clone(&self) -> CoapRequest<Endpoint>[src]
pub fn clone_from(&mut self, source: &Self)1.0.0[src]
impl<Endpoint: Debug> Debug for CoapRequest<Endpoint>[src]
impl<Endpoint> Default for CoapRequest<Endpoint>[src]
Auto Trait Implementations
impl<Endpoint> RefUnwindSafe for CoapRequest<Endpoint> where
Endpoint: RefUnwindSafe,
Endpoint: RefUnwindSafe,
impl<Endpoint> Send for CoapRequest<Endpoint> where
Endpoint: Send,
Endpoint: Send,
impl<Endpoint> Sync for CoapRequest<Endpoint> where
Endpoint: Sync,
Endpoint: Sync,
impl<Endpoint> Unpin for CoapRequest<Endpoint> where
Endpoint: Unpin,
Endpoint: Unpin,
impl<Endpoint> UnwindSafe for CoapRequest<Endpoint> where
Endpoint: UnwindSafe,
Endpoint: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn clone_into(&self, target: &mut T)[src]
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.
pub 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>,