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§fn request_publisher_actual_qos(&self) -> QoSProfile
fn request_publisher_actual_qos(&self) -> QoSProfile
What the REQUEST endpoint — the publisher this client sends requests on — was granted.
Source§fn response_subscription_actual_qos(&self) -> QoSProfile
fn response_subscription_actual_qos(&self) -> QoSProfile
What the RESPONSE endpoint — the subscription this client takes replies
on — was granted. See Self::request_publisher_actual_qos.
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 refused_response_len(&self) -> Option<usize>
fn refused_response_len(&self) -> Option<usize>
Issue 1632 — how many bytes the reply the most recent
take_response_raw REFUSED as too big for
the caller’s buffer needed. Subscription::refused_sample_len’s
contract, for the client: None is “the backend does not know”.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