pub trait CaptureListenPlugin: Plugin + CaptureListenPluginExported {
// Required methods
fn capture_open(
&mut self,
listen_input: &CaptureListenInput<'_>,
) -> Result<(), Error>;
fn capture_close(
&mut self,
listen_input: &CaptureListenInput<'_>,
) -> Result<(), Error>;
}
Expand description
Support for capture listening plugins
Required Methods§
Sourcefn capture_open(
&mut self,
listen_input: &CaptureListenInput<'_>,
) -> Result<(), Error>
fn capture_open( &mut self, listen_input: &CaptureListenInput<'_>, ) -> Result<(), Error>
§Capture open notification
This method gets called whenever the capture is started
Sourcefn capture_close(
&mut self,
listen_input: &CaptureListenInput<'_>,
) -> Result<(), Error>
fn capture_close( &mut self, listen_input: &CaptureListenInput<'_>, ) -> Result<(), Error>
§Capture close notification
This method gets called whenever the capture is stopped
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.