pub struct FileSubscriber { /* private fields */ }Expand description
A subscription to one stream key in the file; yields SeaMessages.
Dropping the subscriber stops the driver task. A replay subscription completes (the stream ends) at the end of the file.
Implementations§
Source§impl FileSubscriber
impl FileSubscriber
Sourcepub fn stream_key(&self) -> &str
pub fn stream_key(&self) -> &str
The stream key this subscription consumes.
Trait Implementations§
Source§impl Debug for FileSubscriber
impl Debug for FileSubscriber
Source§impl Seekable for FileSubscriber
impl Seekable for FileSubscriber
Source§type Seeker = FileSeeker
type Seeker = FileSeeker
The handle usable while this subscriber’s stream is running.
Source§fn seeker(&self) -> FileSeeker
fn seeker(&self) -> FileSeeker
Mints a handle for repositioning this subscription.
Source§impl Subscriber for FileSubscriber
impl Subscriber for FileSubscriber
Source§type Message = SeaMessage
type Message = SeaMessage
The message type yielded by this subscriber.
Source§type Error = SeaFileError
type Error = SeaFileError
The error type yielded by the stream when delivery fails.
Source§fn stream(
&mut self,
) -> impl Stream<Item = Result<SeaMessage, SeaFileError>> + Send + '_
fn stream( &mut self, ) -> impl Stream<Item = Result<SeaMessage, SeaFileError>> + Send + '_
Returns a stream of broker deliveries. Read more
Auto Trait Implementations§
impl Freeze for FileSubscriber
impl RefUnwindSafe for FileSubscriber
impl Send for FileSubscriber
impl Sync for FileSubscriber
impl Unpin for FileSubscriber
impl UnsafeUnpin for FileSubscriber
impl UnwindSafe for FileSubscriber
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