pub struct BoundedTransferModel<T> {
pub slot_capacity: nat,
pub retained_byte_capacity: nat,
pub values: Seq<T>,
pub registry: Seq<(u64, u64)>,
pub retained_bytes: nat,
pub head: nat,
pub tail: nat,
pub closed: bool,
}Expand description
Erased logical view shared by every bounded-transfer realization.
Fields§
§slot_capacity: natMaximum retained record count.
retained_byte_capacity: natMaximum retained encoded byte count.
values: Seq<T>Retained records in FIFO order.
registry: Seq<(u64, u64)>Encoded key-size registry for retained records.
retained_bytes: natTotal encoded bytes retained.
head: natMonotone consumed-record cursor.
tail: natMonotone admitted-record cursor.
closed: boolWhether the transfer owner is closed to new records.
Auto Trait Implementations§
impl<T> Freeze for BoundedTransferModel<T>
impl<T> RefUnwindSafe for BoundedTransferModel<T>where
Seq<T>: RefUnwindSafe,
impl<T> Send for BoundedTransferModel<T>
impl<T> Sync for BoundedTransferModel<T>
impl<T> Unpin for BoundedTransferModel<T>
impl<T> UnsafeUnpin for BoundedTransferModel<T>where
Seq<T>: UnsafeUnpin,
impl<T> UnwindSafe for BoundedTransferModel<T>where
Seq<T>: UnwindSafe,
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