pub struct ReadOutcome {
pub reports: usize,
pub truncated: bool,
pub events_through: u64,
}Expand description
How far a read got.
Fields§
§reports: usizeHow many reports were written.
truncated: boolWhether the message filled before every path was served.
When this is set the message carries MoreChunkedMessages (§10.2.3), which promises
the client a continuation — so a caller that sets it must send one.
Server::serve_chunk produces it; ReadCursor is where it resumes.
events_through: u64One past the highest event number this message carried, or 0 if it carried none.
§8.5.3.4’s bookmark: the next report over the same subscription starts here, so an event
is delivered once. Server::report_chunk records it on the subscription itself, so
Subscription::reported does not ask
a caller for a number only the server has.
Trait Implementations§
Source§impl Clone for ReadOutcome
impl Clone for ReadOutcome
impl Copy for ReadOutcome
Source§impl Debug for ReadOutcome
impl Debug for ReadOutcome
impl Eq for ReadOutcome
Source§impl PartialEq for ReadOutcome
impl PartialEq for ReadOutcome
impl StructuralPartialEq for ReadOutcome
Auto Trait Implementations§
impl Forget for ReadOutcome
impl Freeze for ReadOutcome
impl Move for ReadOutcome
impl RefUnwindSafe for ReadOutcome
impl Send for ReadOutcome
impl Sync for ReadOutcome
impl Unpin for ReadOutcome
impl UnsafeUnpin for ReadOutcome
impl UnwindSafe for ReadOutcome
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