pub struct PendingRequest<Req, Resp>{ /* private fields */ }Expand description
Handle to an in-flight request — receives the matching response(s).
Implementations§
Source§impl<Req, Resp> PendingRequest<Req, Resp>
impl<Req, Resp> PendingRequest<Req, Resp>
Sourcepub fn take(
&self,
) -> Result<Option<IxResponse<Service, Resp, ()>>, ExecutorError>
pub fn take( &self, ) -> Result<Option<IxResponse<Service, Resp, ()>>, ExecutorError>
Try to receive the next response, if one has arrived.
The iceoryx2 0.8.1 PendingResponse::receive() returns a
Response<IpcService, Resp, ()>, not a Sample — this wraps it.
Trait Implementations§
Auto Trait Implementations§
impl<Req, Resp> !Freeze for PendingRequest<Req, Resp>
impl<Req, Resp> !RefUnwindSafe for PendingRequest<Req, Resp>
impl<Req, Resp> !Sync for PendingRequest<Req, Resp>
impl<Req, Resp> Unpin for PendingRequest<Req, Resp>where
Resp: Unpin,
impl<Req, Resp> UnsafeUnpin for PendingRequest<Req, Resp>
impl<Req, Resp> !UnwindSafe for PendingRequest<Req, Resp>
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