Struct sea_streamer::SeaStreamer
source · pub struct SeaStreamer { /* private fields */ }Available on crate feature
sea-streamer-socket only.Expand description
sea-streamer-socket concrete type of Streamer.
Trait Implementations§
source§impl Debug for SeaStreamer
impl Debug for SeaStreamer
source§impl From<KafkaStreamer> for SeaStreamer
impl From<KafkaStreamer> for SeaStreamer
source§fn from(i: KafkaStreamer) -> SeaStreamer
fn from(i: KafkaStreamer) -> SeaStreamer
Converts to this type from the input type.
source§impl From<StdioStreamer> for SeaStreamer
impl From<StdioStreamer> for SeaStreamer
source§fn from(i: StdioStreamer) -> SeaStreamer
fn from(i: StdioStreamer) -> SeaStreamer
Converts to this type from the input type.
source§impl SeaStreamerBackend for SeaStreamer
impl SeaStreamerBackend for SeaStreamer
type Kafka = KafkaStreamer
type Stdio = StdioStreamer
source§fn get_kafka(
&mut self
) -> Option<&mut <SeaStreamer as SeaStreamerBackend>::Kafka>
fn get_kafka( &mut self ) -> Option<&mut <SeaStreamer as SeaStreamerBackend>::Kafka>
Get the concrete type for the Kafka backend. None if it’s another Backend
source§fn get_stdio(
&mut self
) -> Option<&mut <SeaStreamer as SeaStreamerBackend>::Stdio>
fn get_stdio( &mut self ) -> Option<&mut <SeaStreamer as SeaStreamerBackend>::Stdio>
Get the concrete type for the Stdio backend. None if it’s another Backend
source§impl Streamer for SeaStreamer
impl Streamer for SeaStreamer
type Error = BackendErr
type Producer = SeaProducer
type Consumer = SeaConsumer
type ConnectOptions = SeaConnectOptions
type ConsumerOptions = SeaConsumerOptions
type ProducerOptions = SeaProducerOptions
source§fn connect<'async_trait>(
uri: StreamerUri,
options: <SeaStreamer as Streamer>::ConnectOptions
) -> Pin<Box<dyn Future<Output = Result<SeaStreamer, StreamErr<BackendErr>>> + Send + 'async_trait, Global>>where
SeaStreamer: 'async_trait,
fn connect<'async_trait>( uri: StreamerUri, options: <SeaStreamer as Streamer>::ConnectOptions ) -> Pin<Box<dyn Future<Output = Result<SeaStreamer, StreamErr<BackendErr>>> + Send + 'async_trait, Global>>where SeaStreamer: 'async_trait,
Establish a connection to the streaming server.
source§fn disconnect<'async_trait>(
self
) -> Pin<Box<dyn Future<Output = Result<(), StreamErr<BackendErr>>> + Send + 'async_trait, Global>>where
SeaStreamer: 'async_trait,
fn disconnect<'async_trait>( self ) -> Pin<Box<dyn Future<Output = Result<(), StreamErr<BackendErr>>> + Send + 'async_trait, Global>>where SeaStreamer: 'async_trait,
Flush and disconnect from the streaming server.
source§fn create_generic_producer<'life0, 'async_trait>(
&'life0 self,
options: <SeaStreamer as Streamer>::ProducerOptions
) -> Pin<Box<dyn Future<Output = Result<<SeaStreamer as Streamer>::Producer, StreamErr<BackendErr>>> + Send + 'async_trait, Global>>where
'life0: 'async_trait,
SeaStreamer: 'async_trait,
fn create_generic_producer<'life0, 'async_trait>( &'life0 self, options: <SeaStreamer as Streamer>::ProducerOptions ) -> Pin<Box<dyn Future<Output = Result<<SeaStreamer as Streamer>::Producer, StreamErr<BackendErr>>> + Send + 'async_trait, Global>>where 'life0: 'async_trait, SeaStreamer: 'async_trait,
Create a producer that can stream to any stream key.
source§fn create_consumer<'life0, 'life1, 'async_trait>(
&'life0 self,
streams: &'life1 [StreamKey],
options: <SeaStreamer as Streamer>::ConsumerOptions
) -> Pin<Box<dyn Future<Output = Result<<SeaStreamer as Streamer>::Consumer, StreamErr<BackendErr>>> + Send + 'async_trait, Global>>where
'life0: 'async_trait,
'life1: 'async_trait,
SeaStreamer: 'async_trait,
fn create_consumer<'life0, 'life1, 'async_trait>( &'life0 self, streams: &'life1 [StreamKey], options: <SeaStreamer as Streamer>::ConsumerOptions ) -> Pin<Box<dyn Future<Output = Result<<SeaStreamer as Streamer>::Consumer, StreamErr<BackendErr>>> + Send + 'async_trait, Global>>where 'life0: 'async_trait, 'life1: 'async_trait, SeaStreamer: 'async_trait,
Create a consumer subscribing to the specified streams.
source§fn create_producer<'life0, 'async_trait>(
&'life0 self,
stream: StreamKey,
options: Self::ProducerOptions
) -> Pin<Box<dyn Future<Output = Result<Self::Producer, StreamErr<Self::Error>>> + Send + 'async_trait, Global>>where
'life0: 'async_trait,
Self: Sync + 'async_trait,
fn create_producer<'life0, 'async_trait>( &'life0 self, stream: StreamKey, options: Self::ProducerOptions ) -> Pin<Box<dyn Future<Output = Result<Self::Producer, StreamErr<Self::Error>>> + Send + 'async_trait, Global>>where 'life0: 'async_trait, Self: Sync + 'async_trait,
Create a producer that streams to the specified stream.
Auto Trait Implementations§
impl RefUnwindSafe for SeaStreamer
impl Send for SeaStreamer
impl Sync for SeaStreamer
impl Unpin for SeaStreamer
impl UnwindSafe for SeaStreamer
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