pub struct SinkConnectorAdapter { /* private fields */ }Expand description
Adapter: wraps a SinkConnector as a Sink for use in the sink registry
Implementations§
Source§impl SinkConnectorAdapter
impl SinkConnectorAdapter
Sourcepub fn new(name: &str, connector: Box<dyn SinkConnector>) -> Self
pub fn new(name: &str, connector: Box<dyn SinkConnector>) -> Self
Create a new adapter wrapping a SinkConnector.
Trait Implementations§
Source§impl Debug for SinkConnectorAdapter
impl Debug for SinkConnectorAdapter
Source§impl Sink for SinkConnectorAdapter
impl Sink for SinkConnectorAdapter
Source§fn connect<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<(), SinkError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn connect<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<(), SinkError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Establish connection to the external system. Read more
Source§fn send<'life0, 'life1, 'async_trait>(
&'life0 self,
event: &'life1 Event,
) -> Pin<Box<dyn Future<Output = Result<(), SinkError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn send<'life0, 'life1, 'async_trait>(
&'life0 self,
event: &'life1 Event,
) -> Pin<Box<dyn Future<Output = Result<(), SinkError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Send an event to this sink
Source§fn send_batch<'life0, 'life1, 'async_trait>(
&'life0 self,
events: &'life1 [Arc<Event>],
) -> Pin<Box<dyn Future<Output = Result<(), SinkError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn send_batch<'life0, 'life1, 'async_trait>(
&'life0 self,
events: &'life1 [Arc<Event>],
) -> Pin<Box<dyn Future<Output = Result<(), SinkError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Send a batch of events to this sink. Read more
Auto Trait Implementations§
impl !Freeze for SinkConnectorAdapter
impl !RefUnwindSafe for SinkConnectorAdapter
impl Send for SinkConnectorAdapter
impl Sync for SinkConnectorAdapter
impl Unpin for SinkConnectorAdapter
impl UnsafeUnpin for SinkConnectorAdapter
impl !UnwindSafe for SinkConnectorAdapter
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