Skip to main content

StreamSourceTrait

Trait StreamSourceTrait 

Source
pub trait StreamSourceTrait {
    // Required methods
    fn source_type(&self) -> &'static str;
    fn source_id(&self) -> String;
    fn can_terminate(&self) -> bool;
    fn cleanup(&self) -> Result<(), String>;
    fn get_metadata(&self) -> HashMap<String, String>;
}

Required Methods§

Source

fn source_type(&self) -> &'static str

Source

fn source_id(&self) -> String

Source

fn can_terminate(&self) -> bool

Source

fn cleanup(&self) -> Result<(), String>

Source

fn get_metadata(&self) -> HashMap<String, String>

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§