pub struct ReadEnd {
pub count: Option<usize>,
pub bytes: Option<usize>,
pub until: Option<Timestamp>,
pub wait: Option<u32>,
}Fields§
§count: Option<usize>Record count limit. Non-streaming reads are capped by the default limit of 1000 records.
bytes: Option<usize>Metered bytes limit. Non-streaming reads are capped by the default limit of 1 MiB.
until: Option<Timestamp>Exclusive timestamp to read until.
wait: Option<u32>Duration in seconds to wait for new records.
The default duration is 0 if there is a bound on count, bytes, or until, and otherwise infinite.
Non-streaming reads are always bounded on count and bytes, so you can achieve long poll semantics by specifying a non-zero duration up to 60 seconds.
In the context of an SSE or S2S streaming read, the duration will bound how much time can elapse between records throughout the lifetime of the session.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ReadEnd
impl<'de> Deserialize<'de> for ReadEnd
Source§fn 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
Auto Trait Implementations§
impl Freeze for ReadEnd
impl RefUnwindSafe for ReadEnd
impl Send for ReadEnd
impl Sync for ReadEnd
impl Unpin for ReadEnd
impl UnwindSafe for ReadEnd
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§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 more