pub struct VmRecording {
pub program: Program,
pub frames: Vec<VmRecordingFrame>,
pub terminal_status: Option<VmStatus>,
}Fields§
§program: Program§frames: Vec<VmRecordingFrame>§terminal_status: Option<VmStatus>Implementations§
Source§impl VmRecording
impl VmRecording
pub fn save_to_file<P: AsRef<Path>>( &self, path: P, ) -> Result<(), VmRecordingError>
pub fn load_from_file<P: AsRef<Path>>(path: P) -> Result<Self, VmRecordingError>
pub fn encode(&self) -> Result<Vec<u8>, VmRecordingError>
pub fn decode(bytes: &[u8]) -> Result<Self, VmRecordingError>
Trait Implementations§
Source§impl Clone for VmRecording
impl Clone for VmRecording
Source§fn clone(&self) -> VmRecording
fn clone(&self) -> VmRecording
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 moreAuto Trait Implementations§
impl Freeze for VmRecording
impl RefUnwindSafe for VmRecording
impl Send for VmRecording
impl Sync for VmRecording
impl Unpin for VmRecording
impl UnsafeUnpin for VmRecording
impl UnwindSafe for VmRecording
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