Struct embedded_nal_coap::RequestingCoAPClient
source · pub struct RequestingCoAPClient<'a, const CONCURRENT_REQUESTS: usize> { /* private fields */ }
Expand description
The actual coap_request::Stack implementation derived from a CoAPShared by putting in an
address through .to()
.
Trait Implementations§
source§impl<'a, const CONCURRENT_REQUESTS: usize> Stack for RequestingCoAPClient<'a, CONCURRENT_REQUESTS>
impl<'a, const CONCURRENT_REQUESTS: usize> Stack for RequestingCoAPClient<'a, CONCURRENT_REQUESTS>
§type RequestUnionError = WriteError
type RequestUnionError = WriteError
Directly accessible error type of the request messages Read more
§type RequestMessage<'b> = Message<'b>
where
Self: 'b
type RequestMessage<'b> = Message<'b> where Self: 'b
Type of message the client will write its request into
§type ResponseMessage<'b> = Message<'b>
where
Self: 'b
type ResponseMessage<'b> = Message<'b> where Self: 'b
Type of message the client will read the response from
§type TransportError = TransportError
type TransportError = TransportError
Error indicating an error at some point below the CoAP request-reponse mechanism Read more
async fn request<Req: Request<Self>>( &mut self, request: Req, ) -> Result<Req::Output, TransportError>
Auto Trait Implementations§
impl<'a, const CONCURRENT_REQUESTS: usize> Freeze for RequestingCoAPClient<'a, CONCURRENT_REQUESTS>
impl<'a, const CONCURRENT_REQUESTS: usize> !RefUnwindSafe for RequestingCoAPClient<'a, CONCURRENT_REQUESTS>
impl<'a, const CONCURRENT_REQUESTS: usize> !Send for RequestingCoAPClient<'a, CONCURRENT_REQUESTS>
impl<'a, const CONCURRENT_REQUESTS: usize> !Sync for RequestingCoAPClient<'a, CONCURRENT_REQUESTS>
impl<'a, const CONCURRENT_REQUESTS: usize> Unpin for RequestingCoAPClient<'a, CONCURRENT_REQUESTS>
impl<'a, const CONCURRENT_REQUESTS: usize> !UnwindSafe for RequestingCoAPClient<'a, CONCURRENT_REQUESTS>
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