pub struct CffiServiceClient { /* private fields */ }Expand description
Service client backed by a C vtable.
Implementations§
Trait Implementations§
Source§impl Drop for CffiServiceClient
impl Drop for CffiServiceClient
Source§impl ServiceClientTrait for CffiServiceClient
impl ServiceClientTrait for CffiServiceClient
Source§type Error = TransportError
type Error = TransportError
Error type for service operations
Source§fn call_raw(
&mut self,
request: &[u8],
reply_buf: &mut [u8],
) -> Result<usize, TransportError>
fn call_raw( &mut self, request: &[u8], reply_buf: &mut [u8], ) -> Result<usize, TransportError>
👎Deprecated:
use Client::call → Promise::wait with an executor instead
Send a service request and wait for reply (blocking). Read more
Source§fn send_request_raw(&mut self, request: &[u8]) -> Result<(), TransportError>
fn send_request_raw(&mut self, request: &[u8]) -> Result<(), TransportError>
Send a service request without waiting for a reply (non-blocking). Read more
Source§fn try_recv_reply_raw(
&mut self,
reply_buf: &mut [u8],
) -> Result<Option<usize>, TransportError>
fn try_recv_reply_raw( &mut self, reply_buf: &mut [u8], ) -> Result<Option<usize>, TransportError>
Poll for a reply to the most recently sent request (non-blocking). Read more
Source§fn server_available(&self) -> Result<bool, TransportError>
fn server_available(&self) -> Result<bool, TransportError>
Phase 124.C.1 — graph-aware server-availability probe. Read more
Source§fn send_request<S>(
&mut self,
request: &<S as RosService>::Request,
req_buf: &mut [u8],
) -> Result<(), Self::Error>
fn send_request<S>( &mut self, request: &<S as RosService>::Request, req_buf: &mut [u8], ) -> Result<(), Self::Error>
Send a typed service request without waiting for a reply (non-blocking). Read more
Source§fn try_recv_reply<S>(
&mut self,
reply_buf: &mut [u8],
) -> Result<Option<<S as RosService>::Reply>, Self::Error>
fn try_recv_reply<S>( &mut self, reply_buf: &mut [u8], ) -> Result<Option<<S as RosService>::Reply>, Self::Error>
Poll for a typed reply to the most recently sent request (non-blocking). Read more
Source§fn register_waker(&self, _waker: &Waker)
fn register_waker(&self, _waker: &Waker)
Register an async waker to be notified when a reply arrives. Read more
Source§fn start_server_discovery(
&mut self,
_timeout_ms: u32,
) -> Result<(), Self::Error>
fn start_server_discovery( &mut self, _timeout_ms: u32, ) -> Result<(), Self::Error>
Begin a server-discovery query on this client (non-blocking). Read more
Source§fn poll_server_discovery(&mut self) -> Result<Option<bool>, Self::Error>
fn poll_server_discovery(&mut self) -> Result<Option<bool>, Self::Error>
Poll an in-flight server-discovery query. Read more
Source§fn is_server_ready(&self) -> bool
fn is_server_ready(&self) -> bool
Synchronous, non-blocking check of whether a matching server is
currently visible. Read more
Auto Trait Implementations§
impl Freeze for CffiServiceClient
impl RefUnwindSafe for CffiServiceClient
impl !Send for CffiServiceClient
impl !Sync for CffiServiceClient
impl Unpin for CffiServiceClient
impl UnsafeUnpin for CffiServiceClient
impl UnwindSafe for CffiServiceClient
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