pub trait SourceSession: Send {
// Required methods
fn info(&self) -> &ServerInfo;
fn load_tables(&mut self, config: &Config) -> Result<Vec<TableMeta>>;
fn initialize(&mut self, source_id: &str, config: &Config) -> Result<State>;
fn start(
self: Box<Self>,
config: &Config,
state: &State,
once: bool,
) -> Result<Box<dyn EventStream>>;
}Required Methods§
fn info(&self) -> &ServerInfo
fn load_tables(&mut self, config: &Config) -> Result<Vec<TableMeta>>
Sourcefn initialize(&mut self, source_id: &str, config: &Config) -> Result<State>
fn initialize(&mut self, source_id: &str, config: &Config) -> Result<State>
Capture a checkpoint with this ID, the configured plugin and the server UUID.
fn start( self: Box<Self>, config: &Config, state: &State, once: bool, ) -> Result<Box<dyn EventStream>>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".