pub struct KinesisSubscriber { /* private fields */ }Expand description
A subscription to one Kinesis stream; yields KinesisMessages from every owned shard.
Dropping the subscriber stops the coordinator and every reader; unsettled records redeliver from the last checkpoint when the leases are next taken.
Implementations§
Source§impl KinesisSubscriber
impl KinesisSubscriber
Sourcepub fn stream_name(&self) -> &str
pub fn stream_name(&self) -> &str
The stream this subscription consumes from.
Trait Implementations§
Source§impl Debug for KinesisSubscriber
impl Debug for KinesisSubscriber
Source§impl Seekable for KinesisSubscriber
impl Seekable for KinesisSubscriber
Source§type Seeker = KinesisSeeker
type Seeker = KinesisSeeker
The handle usable while this subscriber’s stream is running.
Source§fn seeker(&self) -> KinesisSeeker
fn seeker(&self) -> KinesisSeeker
Mints a handle for repositioning this subscription.
Source§impl Subscriber for KinesisSubscriber
impl Subscriber for KinesisSubscriber
Source§type Message = KinesisMessage
type Message = KinesisMessage
The message type yielded by this subscriber.
Source§type Error = KinesisError
type Error = KinesisError
The error type yielded by the stream when delivery fails.
Source§fn stream(
&mut self,
) -> impl Stream<Item = Result<KinesisMessage, KinesisError>> + Send + '_
fn stream( &mut self, ) -> impl Stream<Item = Result<KinesisMessage, KinesisError>> + Send + '_
Returns a stream of broker deliveries. Read more
Auto Trait Implementations§
impl Freeze for KinesisSubscriber
impl RefUnwindSafe for KinesisSubscriber
impl Send for KinesisSubscriber
impl Sync for KinesisSubscriber
impl Unpin for KinesisSubscriber
impl UnsafeUnpin for KinesisSubscriber
impl UnwindSafe for KinesisSubscriber
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.