pub struct DeckMechanicalState { /* private fields */ }Implementations§
Source§impl DeckMechanicalState
impl DeckMechanicalState
pub fn new(config: PhysicalDeckConfig) -> Result<Self, PhysicalDeckConfigError>
pub fn config(&self) -> PhysicalDeckConfig
pub fn reconfigure( &mut self, config: PhysicalDeckConfig, ) -> Result<(), PhysicalDeckConfigError>
pub fn reset( &mut self, platter_rate: f64, record_rate: f64, platter_angle_turns: f64, record_angle_turns: f64, ) -> Result<(), DeckMechanicalError>
pub fn advance( &mut self, duration_seconds: f64, control: DeckMechanicalControl, ) -> Result<DeckMechanicalTelemetry, DeckMechanicalError>
pub fn telemetry(&self) -> DeckMechanicalTelemetry
pub fn snapshot(&self) -> DeckMechanicalSnapshot
pub fn restore( &mut self, snapshot: DeckMechanicalSnapshot, ) -> Result<(), DeckMechanicalError>
Trait Implementations§
Source§impl Clone for DeckMechanicalState
impl Clone for DeckMechanicalState
Source§fn clone(&self) -> DeckMechanicalState
fn clone(&self) -> DeckMechanicalState
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 moreimpl Copy for DeckMechanicalState
Source§impl Debug for DeckMechanicalState
impl Debug for DeckMechanicalState
Source§impl PartialEq for DeckMechanicalState
impl PartialEq for DeckMechanicalState
Source§impl Serialize for DeckMechanicalState
impl Serialize for DeckMechanicalState
impl StructuralPartialEq for DeckMechanicalState
Auto Trait Implementations§
impl Freeze for DeckMechanicalState
impl RefUnwindSafe for DeckMechanicalState
impl Send for DeckMechanicalState
impl Sync for DeckMechanicalState
impl Unpin for DeckMechanicalState
impl UnsafeUnpin for DeckMechanicalState
impl UnwindSafe for DeckMechanicalState
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