pub struct ServiceClientCallback<Svc: RosService, const REQ_BUF: usize = { crate::config::DEFAULT_RX_BUF_SIZE }, const REPLY_BUF: usize = { crate::config::DEFAULT_RX_BUF_SIZE }> { /* private fields */ }Expand description
Send handle for a callback-based typed service client.
Returned by create_client_with_callback: the reply is delivered to the
registered closure at spin_once (no Promise poll). This handle only
sends — it holds a *mut to the arena entry’s
ServiceClientSendHeader (pinned in
the executor arena, like a guard-condition flag), so a single outstanding
request is gated by hdr.pending.
§Safety / lifetime
Valid only while the owning executor lives (the arena backs the header). Do not use after the executor is dropped.
Implementations§
Source§impl<Svc: RosService, const REQ_BUF: usize, const REPLY_BUF: usize> ServiceClientCallback<Svc, REQ_BUF, REPLY_BUF>
impl<Svc: RosService, const REQ_BUF: usize, const REPLY_BUF: usize> ServiceClientCallback<Svc, REQ_BUF, REPLY_BUF>
Auto Trait Implementations§
impl<Svc, const REQ_BUF: usize, const REPLY_BUF: usize> Freeze for ServiceClientCallback<Svc, REQ_BUF, REPLY_BUF>
impl<Svc, const REQ_BUF: usize, const REPLY_BUF: usize> RefUnwindSafe for ServiceClientCallback<Svc, REQ_BUF, REPLY_BUF>where
Svc: RefUnwindSafe,
impl<Svc, const REQ_BUF: usize = { crate::config::DEFAULT_RX_BUF_SIZE }, const REPLY_BUF: usize = { crate::config::DEFAULT_RX_BUF_SIZE }> !Send for ServiceClientCallback<Svc, REQ_BUF, REPLY_BUF>
impl<Svc, const REQ_BUF: usize = { crate::config::DEFAULT_RX_BUF_SIZE }, const REPLY_BUF: usize = { crate::config::DEFAULT_RX_BUF_SIZE }> !Sync for ServiceClientCallback<Svc, REQ_BUF, REPLY_BUF>
impl<Svc, const REQ_BUF: usize, const REPLY_BUF: usize> Unpin for ServiceClientCallback<Svc, REQ_BUF, REPLY_BUF>where
Svc: Unpin,
impl<Svc, const REQ_BUF: usize, const REPLY_BUF: usize> UnsafeUnpin for ServiceClientCallback<Svc, REQ_BUF, REPLY_BUF>
impl<Svc, const REQ_BUF: usize, const REPLY_BUF: usize> UnwindSafe for ServiceClientCallback<Svc, REQ_BUF, REPLY_BUF>where
Svc: UnwindSafe,
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