Trait owlyshield_ransom::connectors::connector::Connector [−][src]
pub trait Connector {
fn to_string(&self) -> String;
fn on_startup(&self, config: &Config) -> Result<(), ConnectorError>;
fn on_event_kill(
&self,
config: &Config,
proc: &ProcessRecord,
prediction: f32
) -> Result<(), ConnectorError>;
}
Expand description
Contains the methods of the Connector interface.
Required methods
fn on_startup(&self, config: &Config) -> Result<(), ConnectorError>
fn on_startup(&self, config: &Config) -> Result<(), ConnectorError>
Actions on service startup
fn on_event_kill(
&self,
config: &Config,
proc: &ProcessRecord,
prediction: f32
) -> Result<(), ConnectorError>
fn on_event_kill(
&self,
config: &Config,
proc: &ProcessRecord,
prediction: f32
) -> Result<(), ConnectorError>
Send events to the interface.
Implementors
Implementation of the methods from Connector for the SitinCloud interface.