pub struct NodeServiceClient<S: Service> { /* private fields */ }Expand description
Typed service client returned by [Node::create_client] (ROS 2 / rclrs style).
Implementations§
Source§impl<S: Service> NodeServiceClient<S>
impl<S: Service> NodeServiceClient<S>
pub fn service_name(&self) -> &str
pub fn service_is_ready(&self) -> bool
pub fn wait_for_service(&self, timeout: Option<Duration>) -> bool
pub fn call( &self, request: &S::Request, timeout: Option<Duration>, ) -> Result<S::Response>
pub fn high_water_mark(&self) -> Result<HighWaterMark>
pub fn set_high_water_mark(&self, hwm: HighWaterMark) -> Result<()>
Auto Trait Implementations§
impl<S> !Freeze for NodeServiceClient<S>
impl<S> RefUnwindSafe for NodeServiceClient<S>where
PhantomData<S>: RefUnwindSafe,
impl<S> Send for NodeServiceClient<S>where
PhantomData<S>: Send,
impl<S> Sync for NodeServiceClient<S>where
PhantomData<S>: Sync,
impl<S> Unpin for NodeServiceClient<S>where
PhantomData<S>: Unpin,
impl<S> UnsafeUnpin for NodeServiceClient<S>where
PhantomData<S>: UnsafeUnpin,
impl<S> UnwindSafe for NodeServiceClient<S>where
PhantomData<S>: 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