pub struct Session { /* private fields */ }Expand description
A bounded recording. Reporting and screenshot encoding happen outside recorded frames.
Implementations§
Source§impl Session
impl Session
pub fn from_env() -> Option<Self>
pub fn record(&mut self, sample: FrameSample)
pub fn render_quality(&mut self, quality: u32)
pub fn gpu_source(&mut self, source: &'static str)
Sourcepub fn gpu_result(&mut self, frame: u64, microseconds: f64)
pub fn gpu_result(&mut self, frame: u64, microseconds: f64)
Results are tagged with the 1-based presented frame, including discarded warmup.
pub fn write(&self, backend: &str, width: u32, height: u32) -> Result<()>
Auto Trait Implementations§
impl Freeze for Session
impl RefUnwindSafe for Session
impl Send for Session
impl Sync for Session
impl Unpin for Session
impl UnwindSafe for Session
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