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
sourceimpl From<&'static str> for TypedStaticResponse
impl From<&'static str> for TypedStaticResponse
sourceimpl 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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more