Struct sea_streamer_socket::SeaStreamer
source · 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