pub struct CaptureConfig {
    pub root: PathBuf,
    pub bits: CaptureBits,
    pub scene_id: u32,
    pub frame_id: u32,
    pub resource_id: u32,
    pretty: PrettyConfig,
}Fields§
§root: PathBuf§bits: CaptureBits§scene_id: u32Scene sequence ID when capturing multiple frames. Zero for a single frame capture.
frame_id: u32Frame sequence ID when capturing multiple frames. Zero for a single frame capture.
resource_id: u32Resource sequence ID when capturing multiple frames. Zero for a single frame capture.
pretty: PrettyConfigImplementations§
Source§impl CaptureConfig
 
impl CaptureConfig
pub fn new(root: PathBuf, bits: CaptureBits) -> Self
pub fn prepare_scene(&mut self)
pub fn prepare_frame(&mut self)
pub fn prepare_resource(&mut self)
pub fn scene_root(&self) -> PathBuf
pub fn frame_root(&self) -> PathBuf
pub fn resource_root(&self) -> PathBuf
pub fn serialize_for_scene<T, P>(&self, data: &T, name: P)
pub fn serialize_for_frame<T, P>(&self, data: &T, name: P)
pub fn serialize_for_resource<T, P>(&self, data: &T, name: P)
pub fn file_path_for_frame<P>(&self, name: P, ext: &str) -> PathBuf
fn serialize<T, P>(&self, data: &T, path: PathBuf, name: P)
fn serialize_tree<T, P>(data: &T, root: PathBuf, name: P)
pub fn serialize_tree_for_frame<T, P>(&self, data: &T, name: P)
Trait Implementations§
Source§impl Clone for CaptureConfig
 
impl Clone for CaptureConfig
Source§fn clone(&self) -> CaptureConfig
 
fn clone(&self) -> CaptureConfig
Returns a duplicate of the value. Read more
1.0.0 · 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 CaptureConfig
impl RefUnwindSafe for CaptureConfig
impl Send for CaptureConfig
impl Sync for CaptureConfig
impl Unpin for CaptureConfig
impl UnwindSafe for CaptureConfig
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> CloneToUninit for Twhere
    T: Clone,
 
impl<T> CloneToUninit for Twhere
    T: Clone,
Source§impl<T> IntoEither for T
 
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
 
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts 
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
 
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts 
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more