Skip to main content

ObjectSafeTraceFormat

Trait ObjectSafeTraceFormat 

Source
trait ObjectSafeTraceFormat {
    // Required methods
    fn create_reused(&self) -> Box<dyn Any>;
    fn read(&mut self, buffer: &[u8], reuse: &mut Box<dyn Any>) -> Result<usize>;
    fn stats(&self) -> String;
}

Required Methods§

Source

fn create_reused(&self) -> Box<dyn Any>

Source

fn read(&mut self, buffer: &[u8], reuse: &mut Box<dyn Any>) -> Result<usize>

Source

fn stats(&self) -> String

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§