Struct OutboxPage
pub struct OutboxPage {
pub items: Vec<OutboxPageItem>,
pub next: Option<OutboxCursor>,
pub horizon: u64,
pub more: bool,
}Expand description
One bounded outbox page and its optional continuation.
Fields§
§items: Vec<OutboxPageItem>The records in terminal-sequence/key order, each with its post-record cursor so a transport can trim a complete page safely.
next: Option<OutboxCursor>The continuation after the final item when the page is incomplete.
horizon: u64The fixed upper sequence horizon for this traversal.
more: boolWhether another page is available at Self::next.
Implementations§
§impl OutboxPage
impl OutboxPage
pub const fn new(
items: Vec<OutboxPageItem>,
next: Option<OutboxCursor>,
horizon: u64,
more: bool,
) -> Self
pub const fn new( items: Vec<OutboxPageItem>, next: Option<OutboxCursor>, horizon: u64, more: bool, ) -> Self
Creates a page from items, its fixed horizon and optional continuation.
Trait Implementations§
§impl Clone for OutboxPage
impl Clone for OutboxPage
§fn clone(&self) -> OutboxPage
fn clone(&self) -> OutboxPage
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more§impl Debug for OutboxPage
impl Debug for OutboxPage
§impl<'de> Deserialize<'de> for OutboxPage
impl<'de> Deserialize<'de> for OutboxPage
§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
§impl PartialEq for OutboxPage
impl PartialEq for OutboxPage
§impl Serialize for OutboxPage
impl Serialize for OutboxPage
impl StructuralPartialEq for OutboxPage
Auto Trait Implementations§
impl Freeze for OutboxPage
impl RefUnwindSafe for OutboxPage
impl Send for OutboxPage
impl Sync for OutboxPage
impl Unpin for OutboxPage
impl UnsafeUnpin for OutboxPage
impl UnwindSafe for OutboxPage
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