pub struct Executor { /* private fields */ }
Expand description
Single-threaded executor implementation.
Implementations§
Source§impl Executor
impl Executor
Sourcepub fn create_node<'a>(
&'a self,
options: impl IntoNodeOptions<'a>,
) -> Result<Arc<Node>, RclrsError>
pub fn create_node<'a>( &'a self, options: impl IntoNodeOptions<'a>, ) -> Result<Arc<Node>, RclrsError>
Create a Node
that will run on this Executor.
Sourcepub fn spin(&mut self, options: SpinOptions) -> Vec<RclrsError>
pub fn spin(&mut self, options: SpinOptions) -> Vec<RclrsError>
Spin the Executor. The current thread will be blocked until the Executor stops spinning.
SpinOptions
can be used to automatically stop the spinning when
certain conditions are met. Use SpinOptions::default()
to allow the
Executor to keep spinning indefinitely.
Auto Trait Implementations§
impl !Freeze for Executor
impl RefUnwindSafe for Executor
impl Send for Executor
impl Sync for Executor
impl Unpin for Executor
impl UnwindSafe for Executor
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