Struct coap::message::response::CoAPResponse
[−]
[src]
pub struct CoAPResponse { pub message: Packet, }
Fields
message: Packet
Methods
impl CoAPResponse
[src]
pub fn new(request: &Packet) -> Option<CoAPResponse>
[src]
pub fn set_status(&mut self, status: Status)
[src]
pub fn get_status(&self) -> &Status
[src]
Trait Implementations
impl Clone for CoAPResponse
[src]
fn clone(&self) -> CoAPResponse
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for CoAPResponse
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more