pub struct CffiClient { /* private fields */ }Expand description
Service client backed by a C vtable.
Implementations§
Source§impl CffiClient
impl CffiClient
Trait Implementations§
Source§impl ClientTrait for CffiClient
impl ClientTrait for CffiClient
Source§type Error = TransportError
type Error = TransportError
Error type for service operations
Source§fn send_request_raw(&mut self, request: &[u8]) -> Result<i64, TransportError>
fn send_request_raw(&mut self, request: &[u8]) -> Result<i64, TransportError>
Send a service request without waiting for a reply (non-blocking). Read more
Source§fn take_response_raw(
&mut self,
reply_buf: &mut [u8],
) -> Result<Option<(usize, i64)>, TransportError>
fn take_response_raw( &mut self, reply_buf: &mut [u8], ) -> Result<Option<(usize, i64)>, TransportError>
Poll for a reply (non-blocking). Read more
Source§fn service_is_ready(&self) -> Result<bool, TransportError>
fn service_is_ready(&self) -> Result<bool, TransportError>
Whether a matching service server is currently discoverable. 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 take_response<S>(
&mut self,
reply_buf: &mut [u8],
) -> Result<Option<<S as RosService>::Reply>, Self::Error>
fn take_response<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§impl Drop for CffiClient
impl Drop for CffiClient
Auto Trait Implementations§
impl !Send for CffiClient
impl !Sync for CffiClient
impl Freeze for CffiClient
impl RefUnwindSafe for CffiClient
impl Unpin for CffiClient
impl UnsafeUnpin for CffiClient
impl UnwindSafe for CffiClient
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