pub struct SeaStreamer { /* private fields */ }Expand description
sea-streamer-socket concrete type of Streamer.
Trait Implementationsยง
Sourceยงimpl Debug for SeaStreamer
impl Debug for SeaStreamer
Sourceยงimpl From<StdioStreamer> for SeaStreamer
impl From<StdioStreamer> for SeaStreamer
Sourceยงfn from(i: StdioStreamer) -> Self
fn from(i: StdioStreamer) -> Self
Converts to this type from the input type.
Sourceยงimpl SeaStreamerBackend for SeaStreamer
impl SeaStreamerBackend for SeaStreamer
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ยงasync fn connect(
uri: StreamerUri,
options: Self::ConnectOptions,
) -> StreamResult<Self, BackendErr>
async fn connect( uri: StreamerUri, options: Self::ConnectOptions, ) -> StreamResult<Self, BackendErr>
Establish a connection to the streaming server.
Sourceยงasync fn disconnect(self) -> StreamResult<(), BackendErr>
async fn disconnect(self) -> StreamResult<(), BackendErr>
Flush and disconnect from the streaming server.
Sourceยงasync fn create_generic_producer(
&self,
options: Self::ProducerOptions,
) -> StreamResult<Self::Producer, BackendErr>
async fn create_generic_producer( &self, options: Self::ProducerOptions, ) -> StreamResult<Self::Producer, BackendErr>
Create a producer that can stream to any stream key.
Sourceยงasync fn create_consumer(
&self,
streams: &[StreamKey],
options: Self::ConsumerOptions,
) -> StreamResult<Self::Consumer, BackendErr>
async fn create_consumer( &self, streams: &[StreamKey], options: Self::ConsumerOptions, ) -> StreamResult<Self::Consumer, BackendErr>
Create a consumer subscribing to the specified streams.
Auto Trait Implementationsยง
impl Freeze for SeaStreamer
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