Struct coap_request_implementations::Code
source · pub struct Code { /* private fields */ }
Expand description
A request that merely sends a code, and returns successful if the returned code as successful and no critical options were present.
While not terribly useful on its own, its main purpose is as the start of a builder.
Implementations§
Trait Implementations§
source§impl<S: Stack + ?Sized> Request<S> for Code
impl<S: Stack + ?Sized> Request<S> for Code
type Carry = ()
type Output = Result<(), ()>
source§async fn build_request(
&mut self,
req: &mut S::RequestMessage<'_>
) -> Result<(), S::RequestUnionError>
async fn build_request( &mut self, req: &mut S::RequestMessage<'_> ) -> Result<(), S::RequestUnionError>
Build the request message Read more
source§async fn process_response(
&mut self,
res: &S::ResponseMessage<'_>,
_carry: ()
) -> Self::Output
async fn process_response( &mut self, res: &S::ResponseMessage<'_>, _carry: () ) -> Self::Output
Process the response message Read more
Auto Trait Implementations§
impl RefUnwindSafe for Code
impl Send for Code
impl Sync for Code
impl Unpin for Code
impl UnwindSafe for Code
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