Skip to main content

CallRecordFormatter

Trait CallRecordFormatter 

Source
pub trait CallRecordFormatter: Send + Sync {
    // Required methods
    fn format_file_name(&self, record: &CallRecord) -> String;
    fn format_dump_events_path(&self, record: &CallRecord) -> String;
    fn format_media_path(
        &self,
        record: &CallRecord,
        media: &CallRecordMedia,
    ) -> String;

    // Provided method
    fn format(&self, record: &CallRecord) -> Result<String> { ... }
}

Required Methods§

Provided Methods§

Source

fn format(&self, record: &CallRecord) -> Result<String>

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§