#[non_exhaustive]pub struct ActionClientOptions<'a> {
pub action_name: &'a str,
pub goal_service_qos: QoSProfile,
pub result_service_qos: QoSProfile,
pub cancel_service_qos: QoSProfile,
pub feedback_topic_qos: QoSProfile,
pub status_topic_qos: QoSProfile,
}Expand description
ActionClientOptions are used by Node::create_action_client to initialize an
ActionClient.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.action_name: &'a strThe name of the action that this client will send requests to
goal_service_qos: QoSProfileThe quality of service profile for the goal service
result_service_qos: QoSProfileThe quality of service profile for the result service
cancel_service_qos: QoSProfileThe quality of service profile for the cancel service
feedback_topic_qos: QoSProfileThe quality of service profile for the feedback topic
status_topic_qos: QoSProfileThe quality of service profile for the status topic
Implementations§
Source§impl<'a> ActionClientOptions<'a>
impl<'a> ActionClientOptions<'a>
Sourcepub fn new(action_name: &'a str) -> Self
pub fn new(action_name: &'a str) -> Self
Initialize a new ActionClientOptions with default settings.
Trait Implementations§
Source§impl<'a> Clone for ActionClientOptions<'a>
impl<'a> Clone for ActionClientOptions<'a>
Source§fn clone(&self) -> ActionClientOptions<'a>
fn clone(&self) -> ActionClientOptions<'a>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for ActionClientOptions<'a>
impl<'a> Debug for ActionClientOptions<'a>
Source§impl<'a> IntoActionClientOptions<'a> for ActionClientOptions<'a>
impl<'a> IntoActionClientOptions<'a> for ActionClientOptions<'a>
Source§fn into_action_client_options(self) -> ActionClientOptions<'a>
fn into_action_client_options(self) -> ActionClientOptions<'a>
Change this into an
ActionClientOptions.Source§fn goal_service_qos(self, profile: QoSProfile) -> ActionClientOptions<'a>
fn goal_service_qos(self, profile: QoSProfile) -> ActionClientOptions<'a>
Set the quality of service profile for the goal service
Source§fn result_service_qos(self, profile: QoSProfile) -> ActionClientOptions<'a>
fn result_service_qos(self, profile: QoSProfile) -> ActionClientOptions<'a>
Set the quality of service profile for the result service
Source§fn cancel_service_qos(self, profile: QoSProfile) -> ActionClientOptions<'a>
fn cancel_service_qos(self, profile: QoSProfile) -> ActionClientOptions<'a>
Set the quality of service profile for the cancel service
Source§fn feedback_topic_qos(self, profile: QoSProfile) -> ActionClientOptions<'a>
fn feedback_topic_qos(self, profile: QoSProfile) -> ActionClientOptions<'a>
Set the quality of service profile for the feedback topic
Source§fn status_topic_qos(self, profile: QoSProfile) -> ActionClientOptions<'a>
fn status_topic_qos(self, profile: QoSProfile) -> ActionClientOptions<'a>
Set the quality of service profile for the status topic
Auto Trait Implementations§
impl<'a> Freeze for ActionClientOptions<'a>
impl<'a> RefUnwindSafe for ActionClientOptions<'a>
impl<'a> Send for ActionClientOptions<'a>
impl<'a> Sync for ActionClientOptions<'a>
impl<'a> Unpin for ActionClientOptions<'a>
impl<'a> UnwindSafe for ActionClientOptions<'a>
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