[−][src]Struct coap::message::response::CoAPResponse
Fields
message: PacketMethods
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 IsMessage for CoAPResponse[src]
fn get_message(&self) -> &Packet[src]
fn get_mut_message(&mut self) -> &mut Packet[src]
fn get_header(&self) -> &Header[src]
fn get_mut_header(&mut self) -> &mut Header[src]
fn set_token(&mut self, token: Vec<u8>)[src]
fn get_token(&self) -> &Vec<u8>[src]
fn set_option(&mut self, tp: CoAPOption, value: LinkedList<Vec<u8>>)[src]
fn set_payload(&mut self, payload: Vec<u8>)[src]
fn add_option(&mut self, tp: CoAPOption, value: Vec<u8>)[src]
fn get_option(&self, tp: CoAPOption) -> Option<&LinkedList<Vec<u8>>>[src]
fn clear_option(&mut self, tp: CoAPOption)[src]
fn set_observe(&mut self, value: Vec<u8>)[src]
fn get_observe(&self) -> Option<&Vec<u8>>[src]
fn get_message_id(&self) -> u16[src]
fn set_message_id(&mut self, message_id: u16)[src]
fn set_version(&mut self, v: u8)[src]
fn get_version(&self) -> u8[src]
fn set_type(&mut self, t: MessageType)[src]
fn get_type(&self) -> MessageType[src]
fn get_code(&self) -> String[src]
fn set_code(&mut self, code: &str)[src]
impl Clone for CoAPResponse[src]
fn clone(&self) -> CoAPResponse[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl Debug for CoAPResponse[src]
Auto Trait Implementations
impl Send for CoAPResponse
impl Sync for CoAPResponse
Blanket Implementations
impl<T> From for T[src]
impl<T, U> Into for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
impl<T, U> TryFrom 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> Borrow for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T, U> TryInto for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,