Struct sea_streamer_file::FileStreamer
source ยท pub struct FileStreamer { /* private fields */ }
Trait Implementationsยง
sourceยงimpl Clone for FileStreamer
impl Clone for FileStreamer
sourceยงfn clone(&self) -> FileStreamer
fn clone(&self) -> FileStreamer
Returns a copy of the value. Read more
1.0.0 ยท sourceยงfn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceยงimpl Debug for FileStreamer
impl Debug for FileStreamer
sourceยงimpl Streamer for FileStreamer
impl Streamer for FileStreamer
sourceยงasync fn connect(
uri: StreamerUri,
options: Self::ConnectOptions,
) -> FileResult<Self>
async fn connect( uri: StreamerUri, options: Self::ConnectOptions, ) -> FileResult<Self>
First check whether the file exists. If not, depending on the options, either create it, or error.
sourceยงasync fn disconnect(self) -> FileResult<()>
async fn disconnect(self) -> FileResult<()>
End the producers before disconnecting.
sourceยงasync fn create_consumer(
&self,
streams: &[StreamKey],
options: Self::ConsumerOptions,
) -> FileResult<Self::Consumer>
async fn create_consumer( &self, streams: &[StreamKey], options: Self::ConsumerOptions, ) -> FileResult<Self::Consumer>
To subscribe to all streams in a file, you can use the magic SEA_STREAMER_WILDCARD
stream key.
For RealTime
consumer only.
type Error = FileErr
type Producer = FileProducer
type Consumer = FileConsumer
type ConnectOptions = FileConnectOptions
type ConsumerOptions = FileConsumerOptions
type ProducerOptions = FileProducerOptions
sourceยงasync fn create_generic_producer(
&self,
options: Self::ProducerOptions,
) -> FileResult<Self::Producer>
async fn create_generic_producer( &self, options: Self::ProducerOptions, ) -> FileResult<Self::Producer>
Create a producer that can stream to any stream key.
Auto Trait Implementationsยง
impl Freeze for FileStreamer
impl RefUnwindSafe for FileStreamer
impl Send for FileStreamer
impl Sync for FileStreamer
impl Unpin for FileStreamer
impl UnwindSafe for FileStreamer
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
sourceยงdefault unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
๐ฌThis is a nightly-only experimental API. (
clone_to_uninit
)