Struct ros2_client::NodeOptions
source · pub struct NodeOptions { /* private fields */ }
Expand description
Configuration of Node This is a builder-like struct.
The NodeOptions struct does not contain node_name, context, or namespace, because they ae always needed and have no reasonable default.
Implementations§
source§impl NodeOptions
impl NodeOptions
sourcepub fn new() -> NodeOptions
pub fn new() -> NodeOptions
Get a default NodeOptions
pub fn enable_rosout(self, enable_rosout: bool) -> NodeOptions
pub fn read_rosout(self, enable_rosout_reading: bool) -> NodeOptions
pub fn declare_parameter(self, name: &str, value: ParameterValue) -> NodeOptions
pub fn parameter_validator( self, validator: Box<dyn Fn(&str, &ParameterValue) -> SetParametersResult + Send> ) -> NodeOptions
pub fn parameter_set_action( self, action: Box<dyn Fn(&str, &ParameterValue) -> SetParametersResult + Send> ) -> NodeOptions
Trait Implementations§
Auto Trait Implementations§
impl Freeze for NodeOptions
impl !RefUnwindSafe for NodeOptions
impl Send for NodeOptions
impl !Sync for NodeOptions
impl Unpin for NodeOptions
impl !UnwindSafe for NodeOptions
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