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§
Source§impl Handler for LogMessagePostHandler
impl Handler for LogMessagePostHandler
Source§type ExtractRequestError = Error
type ExtractRequestError = Error
Error type for
extract_request_data(). Read moreSource§type BuildResponseError<M: MinimalWritableMessage> = <M as MinimalWritableMessage>::UnionError
type BuildResponseError<M: MinimalWritableMessage> = <M as MinimalWritableMessage>::UnionError
Error type for writing response data. Read more
Source§type RequestData = ()
type RequestData = ()
Source§fn extract_request_data<M: ReadableMessage>(
&mut self,
request: &M,
) -> Result<Self::RequestData, Error>
fn extract_request_data<M: ReadableMessage>( &mut self, request: &M, ) -> Result<Self::RequestData, Error>
Process an incoming request. Read more
Source§fn estimate_length(&mut self, _: &Self::RequestData) -> usize
fn estimate_length(&mut self, _: &Self::RequestData) -> usize
Estimate an upper bound for the number of bytes in the response Read more
Source§fn build_response<M: MutableWritableMessage>(
&mut self,
response: &mut M,
_request: (),
) -> Result<(), M::UnionError>
fn build_response<M: MutableWritableMessage>( &mut self, response: &mut M, _request: (), ) -> Result<(), M::UnionError>
Build a response for the request Read more
Auto Trait Implementations§
impl Freeze for LogMessagePostHandler
impl RefUnwindSafe for LogMessagePostHandler
impl Send for LogMessagePostHandler
impl Sync for LogMessagePostHandler
impl Unpin for LogMessagePostHandler
impl UnwindSafe for LogMessagePostHandler
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
Source§impl<OldRD, OldH> HandlerBuilder<'_, OldRD> for OldHwhere
OldH: Handler<RequestData = OldRD>,
impl<OldRD, OldH> HandlerBuilder<'_, OldRD> for OldHwhere
OldH: Handler<RequestData = OldRD>,
Source§fn 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,
Source§fn 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