pub struct RobotOptions {
pub realtime_config: RealtimeConfig,
pub version: VersionPolicy,
pub log_size: usize,
}Expand description
Everything crate::Robot::with_options can be told at connect time.
The defaults are crate::Robot::new’s: RealtimeConfig::Enforce is not assumed — the field
has no libfranka default and must be chosen — so RobotOptions::new takes it and the
Default impl uses RealtimeConfig::Enforce, matching franka::Robot’s default
argument.
Fields§
§realtime_config: RealtimeConfigRealtime priority policy, as crate::Robot::new’s second argument.
version: VersionPolicyWhich FCI version to speak.
log_size: usizeSize of the control log attached to a crate::error::ControlException; 0 disables
logging.
Implementations§
Source§impl RobotOptions
impl RobotOptions
Sourcepub fn new(realtime_config: RealtimeConfig) -> RobotOptions
pub fn new(realtime_config: RealtimeConfig) -> RobotOptions
Options with realtime_config, VersionPolicy::Auto and DEFAULT_LOG_SIZE.
Sourcepub fn with_version(self, version: VersionPolicy) -> RobotOptions
pub fn with_version(self, version: VersionPolicy) -> RobotOptions
Sets the version policy.
Sourcepub fn with_log_size(self, log_size: usize) -> RobotOptions
pub fn with_log_size(self, log_size: usize) -> RobotOptions
Sets the control log size.
Trait Implementations§
Source§impl Clone for RobotOptions
impl Clone for RobotOptions
Source§fn clone(&self) -> RobotOptions
fn clone(&self) -> RobotOptions
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 moreSource§impl Debug for RobotOptions
impl Debug for RobotOptions
Auto Trait Implementations§
impl Freeze for RobotOptions
impl RefUnwindSafe for RobotOptions
impl Send for RobotOptions
impl Sync for RobotOptions
impl Unpin for RobotOptions
impl UnsafeUnpin for RobotOptions
impl UnwindSafe for RobotOptions
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
§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 more§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).§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.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.