Struct coap_handler_implementations::TypedStaticResponse [−][src]
pub struct TypedStaticResponse {
pub payload: &'static [u8],
pub contentformat: &'static [u8],
}
👎 Deprecated:
Use SimpleRendered::new_typed_str/_slice
Fields
payload: &'static [u8]
👎 Deprecated:
Use SimpleRendered::new_typed_str/_slice
contentformat: &'static [u8]
👎 Deprecated:
Use SimpleRendered::new_typed_str/_slice
Trait Implementations
type RequestData = u8
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
Mutably borrows from an owned value. Read more
impl<'a, OldRD, OldH> HandlerBuilder<'a, OldRD> for OldH where
OldH: Handler<RequestData = OldRD>,
impl<'a, OldRD, OldH> HandlerBuilder<'a, OldRD> for OldH where
OldH: Handler<RequestData = OldRD>,
Divert requests arriving at path
into the given handler
. Read more