Struct coap_handler::implementations::TypedStaticResponse
source · pub struct TypedStaticResponse {
pub payload: &'static [u8],
pub contentformat: &'static [u8],
}👎Deprecated
Fields§
§payload: &'static [u8]👎Deprecated
§contentformat: &'static [u8]👎Deprecated
Trait Implementations§
source§impl From<&'static str> for TypedStaticResponse
impl From<&'static str> for TypedStaticResponse
source§impl Handler for TypedStaticResponse
impl Handler for TypedStaticResponse
type RequestData = u8
fn extract_request_data( &mut self, request: &impl ReadableMessage ) -> Self::RequestData
fn estimate_length(&mut self, request: &Self::RequestData) -> usize
fn build_response( &mut self, response: &mut impl MutableWritableMessage, request: Self::RequestData )
Auto Trait Implementations§
impl RefUnwindSafe for TypedStaticResponse
impl Send for TypedStaticResponse
impl Sync for TypedStaticResponse
impl Unpin for TypedStaticResponse
impl UnwindSafe for TypedStaticResponse
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more