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§
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>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".