/// Prevent any response from being sent to this `Command` handle from the service.
///
/// Indicates to the service we don't care about a response. This has the same effect as calling `ignore` but can be used in a builder-pattern way from a returned `Command` from a send.
/// Example: `let comm = service.send_command(comm_kind).ignored();`
#[inline(always)]pubfnignored(mutself)-> Self
{
self.ignore();
self
}
/// Close the response channel, indicating to the service that we don't care about the response.
#[inline]pubfnignore(&mutself)
{
self.resp.close();
}
/// Dispose of this `Command`, returning any `Response` that might've already been sent.
#[inline]pubfnclose(mutself)-> Option<Response>
{
useoneshot::error::TryRecvError;
self.resp.close();
self.resp.try_recv().ok().flatten()
}
/// Poll for a response. If none has been sent yet, then return `self` so it can be polled again.