Struct rusoto_kinesis::SubscribeToShardEvent
source · [−]pub struct SubscribeToShardEvent {
pub child_shards: Option<Vec<ChildShard>>,
pub continuation_sequence_number: String,
pub millis_behind_latest: i64,
pub records: Vec<Record>,
}
Expand description
After you call SubscribeToShard, Kinesis Data Streams sends events of this type over an HTTP/2 connection to your consumer.
Fields
child_shards: Option<Vec<ChildShard>>
continuation_sequence_number: String
Use this as SequenceNumber
in the next call to SubscribeToShard, with StartingPosition
set to AT_SEQUENCE_NUMBER
or AFTER_SEQUENCE_NUMBER
. Use ContinuationSequenceNumber
for checkpointing because it captures your shard progress even when no data is written to the shard.
millis_behind_latest: i64
The number of milliseconds the read records are from the tip of the stream, indicating how far behind current time the consumer is. A value of zero indicates that record processing is caught up, and there are no new records to process at this moment.
records: Vec<Record>
Trait Implementations
sourceimpl Clone for SubscribeToShardEvent
impl Clone for SubscribeToShardEvent
sourcefn clone(&self) -> SubscribeToShardEvent
fn clone(&self) -> SubscribeToShardEvent
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for SubscribeToShardEvent
impl Debug for SubscribeToShardEvent
sourceimpl Default for SubscribeToShardEvent
impl Default for SubscribeToShardEvent
sourcefn default() -> SubscribeToShardEvent
fn default() -> SubscribeToShardEvent
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for SubscribeToShardEvent
impl<'de> Deserialize<'de> for SubscribeToShardEvent
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl PartialEq<SubscribeToShardEvent> for SubscribeToShardEvent
impl PartialEq<SubscribeToShardEvent> for SubscribeToShardEvent
sourcefn eq(&self, other: &SubscribeToShardEvent) -> bool
fn eq(&self, other: &SubscribeToShardEvent) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &SubscribeToShardEvent) -> bool
fn ne(&self, other: &SubscribeToShardEvent) -> bool
This method tests for !=
.
impl StructuralPartialEq for SubscribeToShardEvent
Auto Trait Implementations
impl RefUnwindSafe for SubscribeToShardEvent
impl Send for SubscribeToShardEvent
impl Sync for SubscribeToShardEvent
impl Unpin for SubscribeToShardEvent
impl UnwindSafe for SubscribeToShardEvent
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more