#[non_exhaustive]pub struct Delivery {
pub consumer: String,
pub schema: Option<String>,
pub realm: Option<String>,
pub checkpoint: Option<String>,
pub max_held: usize,
}Expand description
The recover-or-resync delivery, for an application where every fact
counts: a topic that is not continuous (a cold start, every reconnect, a
break) holds its messages until the application brought its state up to
date (Event::Resync, then Client::resynced); the checkpoint is
what it committed it applied, and recovery starts from it.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.consumer: StringThe one consumer that commits, by a stable name.
schema: Option<String>The application’s data schema: a checkpoint of another is refused.
realm: Option<String>The server’s realm (by default the URL as given): a checkpoint of another is refused.
checkpoint: Option<String>The checkpoint the application saved last
(Client::checkpoint).
max_held: usizeMessages a topic holds while it resyncs (0: 10,000); more starts the resync over.
Implementations§
Trait Implementations§
impl Eq for Delivery
impl StructuralPartialEq for Delivery
Auto Trait Implementations§
impl Forget for Delivery
impl Freeze for Delivery
impl Move for Delivery
impl RefUnwindSafe for Delivery
impl Send for Delivery
impl Sync for Delivery
impl Unpin for Delivery
impl UnsafeUnpin for Delivery
impl UnwindSafe for Delivery
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