pub struct PluginOutputSink { /* private fields */ }Expand description
Wrapper around a plugin output sink
Used for sending alerts and events to external systems.
Implementations§
Source§impl PluginOutputSink
impl PluginOutputSink
Sourcepub fn new(
name: String,
vtable: &'static OutputSinkVTable,
config: &Value,
) -> Result<Self>
pub fn new( name: String, vtable: &'static OutputSinkVTable, config: &Value, ) -> Result<Self>
Create a new plugin output sink instance
§Arguments
name- Plugin namevtable- Output sink vtable (must be static)config- Configuration value (will be MessagePack encoded)
Get the tags this sink handles (empty = all)
Trait Implementations§
Source§impl Drop for PluginOutputSink
impl Drop for PluginOutputSink
impl Send for PluginOutputSink
impl Sync for PluginOutputSink
Auto Trait Implementations§
impl Freeze for PluginOutputSink
impl RefUnwindSafe for PluginOutputSink
impl Unpin for PluginOutputSink
impl UnsafeUnpin for PluginOutputSink
impl UnwindSafe for PluginOutputSink
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more