pub struct Lazy<'a, T> { /* private fields */ }
Implementations§
source§impl<'a, T> Lazy<'a, T>
impl<'a, T> Lazy<'a, T>
sourcepub fn new(
constructor: impl FnOnce() -> Result<T, Error> + Send + Sync + 'a,
) -> Self
pub fn new( constructor: impl FnOnce() -> Result<T, Error> + Send + Sync + 'a, ) -> Self
Creates a new Lazy
with the given constructor.
Trait Implementations§
source§impl<T> JointTrajectoryClient for Lazy<'_, T>where
T: JointTrajectoryClient,
impl<T> JointTrajectoryClient for Lazy<'_, T>where
T: JointTrajectoryClient,
source§fn joint_names(&self) -> Vec<String>
fn joint_names(&self) -> Vec<String>
Returns names of joints that this client handles.
source§fn current_joint_positions(&self) -> Result<Vec<f64>, Error>
fn current_joint_positions(&self) -> Result<Vec<f64>, Error>
Returns the current joint positions.
source§fn send_joint_positions(
&self,
positions: Vec<f64>,
duration: Duration,
) -> Result<WaitFuture, Error>
fn send_joint_positions( &self, positions: Vec<f64>, duration: Duration, ) -> Result<WaitFuture, Error>
Send the specified joint positions and returns a future that waits until
complete the move joints. Read more
source§fn send_joint_trajectory(
&self,
trajectory: Vec<TrajectoryPoint>,
) -> Result<WaitFuture, Error>
fn send_joint_trajectory( &self, trajectory: Vec<TrajectoryPoint>, ) -> Result<WaitFuture, Error>
Send the specified joint trajectory and returns a future that waits until
complete the move joints. Read more
source§impl<T> Localization for Lazy<'_, T>where
T: Localization,
impl<T> Localization for Lazy<'_, T>where
T: Localization,
source§impl<T> MoveBase for Lazy<'_, T>where
T: MoveBase,
impl<T> MoveBase for Lazy<'_, T>where
T: MoveBase,
fn current_velocity(&self) -> Result<BaseVelocity, Error>
fn send_velocity(&self, velocity: &BaseVelocity) -> Result<(), Error>
source§impl<T> TransformResolver for Lazy<'_, T>where
T: TransformResolver,
impl<T> TransformResolver for Lazy<'_, T>where
T: TransformResolver,
fn resolve_transformation( &self, from: &str, to: &str, time: SystemTime, ) -> Result<Isometry3<f64>, Error>
Auto Trait Implementations§
impl<'a, T> !Freeze for Lazy<'a, T>
impl<'a, T> !RefUnwindSafe for Lazy<'a, T>
impl<'a, T> Send for Lazy<'a, T>where
T: Send,
impl<'a, T> Sync for Lazy<'a, T>
impl<'a, T> Unpin for Lazy<'a, T>where
T: Unpin,
impl<'a, T> !UnwindSafe for Lazy<'a, T>
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self
from the equivalent element of its
superset. Read moresource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self
is actually part of its subset T
(and can be converted to it).source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset
but without any property checks. Always succeeds.source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self
to the equivalent element of its superset.