pub struct RecorderControls { /* private fields */ }Expand description
Start/stop/export controls for animation recording.
Implementations§
Source§impl RecorderControls
impl RecorderControls
Sourcepub fn is_recording(&self) -> bool
pub fn is_recording(&self) -> bool
Whether the recorder is active.
Sourcepub fn export_json(&self) -> String
pub fn export_json(&self) -> String
Export deterministic JSON.
Sourcepub fn export_binary(&self) -> Vec<u8> ⓘ
pub fn export_binary(&self) -> Vec<u8> ⓘ
Export deterministic binary data.
Sourcepub fn import_json(&mut self, json: &str) -> Result<(), RecorderError>
pub fn import_json(&mut self, json: &str) -> Result<(), RecorderError>
Replace the current recording from JSON.
Sourcepub fn import_binary(&mut self, bytes: &[u8]) -> Result<(), RecorderError>
pub fn import_binary(&mut self, bytes: &[u8]) -> Result<(), RecorderError>
Replace the current recording from binary data.
Sourcepub fn tracks(&self) -> &[RecordedTrack]
pub fn tracks(&self) -> &[RecordedTrack]
Recorded tracks.
Sourcepub fn recorder(&self) -> &AnimationRecorder
pub fn recorder(&self) -> &AnimationRecorder
Access the underlying recorder.
Sourcepub fn recorder_mut(&mut self) -> &mut AnimationRecorder
pub fn recorder_mut(&mut self) -> &mut AnimationRecorder
Mutable access to the underlying recorder.
Trait Implementations§
Source§impl Clone for RecorderControls
impl Clone for RecorderControls
Source§fn clone(&self) -> RecorderControls
fn clone(&self) -> RecorderControls
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 RecorderControls
impl Debug for RecorderControls
Source§impl Default for RecorderControls
impl Default for RecorderControls
Source§fn default() -> RecorderControls
fn default() -> RecorderControls
Returns the “default value” for a type. Read more
Source§impl PartialEq for RecorderControls
impl PartialEq for RecorderControls
impl StructuralPartialEq for RecorderControls
Auto Trait Implementations§
impl Freeze for RecorderControls
impl RefUnwindSafe for RecorderControls
impl Send for RecorderControls
impl Sync for RecorderControls
impl Unpin for RecorderControls
impl UnsafeUnpin for RecorderControls
impl UnwindSafe for RecorderControls
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