pub struct SingleThreadedExecutor { /* private fields */ }Expand description
All callbacks run on the spin / I/O thread (ROS 2 SingleThreadedExecutor).
Implementations§
Source§impl SingleThreadedExecutor
impl SingleThreadedExecutor
pub fn new() -> Self
Sourcepub fn with_context(context: Context) -> Self
pub fn with_context(context: Context) -> Self
Executor whose sockets share context (required for inproc with broker/Nodes).
pub fn handle(&self) -> &ExecutorHandle
pub fn add_node(&self, node: &mut Node) -> Result<()>
pub fn create_node(&self, name: impl Into<String>) -> Result<Node>
pub fn create_node_with_options( &self, name: impl Into<String>, options: NodeOptions, ) -> Result<Node>
pub fn create_node_with_context( &self, context: &Context, name: impl Into<String>, options: NodeOptions, ) -> Result<Node>
pub fn shutdown_handle(&self) -> Result<ShutdownHandle>
pub fn shutdown(&self) -> Result<()>
pub fn spin_once(&self, timeout: Option<Duration>) -> Result<bool>
pub fn spin_some(&self, timeout: Option<Duration>) -> Result<()>
pub fn spin(&self) -> Result<()>
pub fn start(&self) -> Result<()>
pub fn stop(&self) -> Result<()>
pub fn wait(&self) -> Result<()>
Trait Implementations§
Source§impl Clone for SingleThreadedExecutor
impl Clone for SingleThreadedExecutor
Source§fn clone(&self) -> SingleThreadedExecutor
fn clone(&self) -> SingleThreadedExecutor
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for SingleThreadedExecutor
impl RefUnwindSafe for SingleThreadedExecutor
impl Send for SingleThreadedExecutor
impl Sync for SingleThreadedExecutor
impl Unpin for SingleThreadedExecutor
impl UnsafeUnpin for SingleThreadedExecutor
impl UnwindSafe for SingleThreadedExecutor
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