Struct coap_message_demos::log::LogMessagePostHandler
source · [−]pub struct LogMessagePostHandler { /* private fields */ }Expand description
CoAP handler that accepts POST requests and dumps the request’s plain-text payload into the log at the configured log level
Implementations
Trait Implementations
sourceimpl Handler for LogMessagePostHandler
impl Handler for LogMessagePostHandler
type RequestData = Result<(), ()>
fn extract_request_data(
&mut self,
request: &impl ReadableMessage
) -> Self::RequestData
fn estimate_length(&mut self, _: &Self::RequestData) -> usize
fn build_response(
&mut self,
response: &mut impl MutableWritableMessage,
request: Self::RequestData
)
Auto Trait Implementations
impl RefUnwindSafe for LogMessagePostHandler
impl Send for LogMessagePostHandler
impl Sync for LogMessagePostHandler
impl Unpin for LogMessagePostHandler
impl UnwindSafe for LogMessagePostHandler
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<'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>,
sourcefn at<H>(self, path: &'a [&'a str], handler: H) -> ForkingHandler<'a, H, Self> where
H: Handler,
fn at<H>(self, path: &'a [&'a str], handler: H) -> ForkingHandler<'a, H, Self> where
H: Handler,
Divert requests arriving at path into the given handler. Read more
sourcefn at_with_attributes<H>(
self,
path: &'a [&'a str],
attributes: &'a [Attribute],
handler: H
) -> ForkingHandler<'a, ConstantSingleRecordReport<'a, H>, Self> where
H: Handler,
fn at_with_attributes<H>(
self,
path: &'a [&'a str],
attributes: &'a [Attribute],
handler: H
) -> ForkingHandler<'a, ConstantSingleRecordReport<'a, H>, Self> where
H: Handler,
Divert requests arriving at path into the given handler, and announce them with the
given attributes in .well-known/core. Read more