Struct ros2_client::Spinner
source · pub struct Spinner { /* private fields */ }
Expand description
Spinner implements Node’s background event loop.
At the moment there are only Discovery (DDS and ROS 2 Graph) event processing, but this would be extended to handle Parameters and other possible background tasks also.
Implementations§
source§impl Spinner
impl Spinner
pub async fn spin(self) -> CreateResult<()>
sourcepub fn set_parameter(
&self,
name: &str,
value: ParameterValue,
) -> Result<(), String>
pub fn set_parameter( &self, name: &str, value: ParameterValue, ) -> Result<(), String>
Sets a parameter value. Parameter must be declared before setting.
Auto Trait Implementations§
impl !Freeze for Spinner
impl !RefUnwindSafe for Spinner
impl Send for Spinner
impl Sync for Spinner
impl !Unpin for Spinner
impl !UnwindSafe for Spinner
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