pub struct TransferPlan { /* private fields */ }Expand description
Ordered plan of named transfers.
Implementations§
Source§impl TransferPlan
impl TransferPlan
Sourcepub fn push(&mut self, transfer: NamedTransfer)
pub fn push(&mut self, transfer: NamedTransfer)
Appends a transfer.
Sourcepub fn transfers(&self) -> &[NamedTransfer]
pub fn transfers(&self) -> &[NamedTransfer]
Returns transfers.
Sourcepub fn total_bytes(&self) -> u64
pub fn total_bytes(&self) -> u64
Sum of payload bytes (including zero-copy declared sizes).
Sourcepub fn counted_copy_bytes(&self) -> u64
pub fn counted_copy_bytes(&self) -> u64
Sum of measurable explicit-copy bytes.
Sourcepub fn validate_against(&self, graph: &PartitionGraph) -> DistributeResult<()>
pub fn validate_against(&self, graph: &PartitionGraph) -> DistributeResult<()>
Ensures every endpoint exists in the partition graph.
Trait Implementations§
Source§impl Clone for TransferPlan
impl Clone for TransferPlan
Source§fn clone(&self) -> TransferPlan
fn clone(&self) -> TransferPlan
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 moreSource§impl Debug for TransferPlan
impl Debug for TransferPlan
Source§impl Default for TransferPlan
impl Default for TransferPlan
Source§fn default() -> TransferPlan
fn default() -> TransferPlan
Returns the “default value” for a type. Read more
Source§impl PartialEq for TransferPlan
impl PartialEq for TransferPlan
Source§fn eq(&self, other: &TransferPlan) -> bool
fn eq(&self, other: &TransferPlan) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for TransferPlan
impl StructuralPartialEq for TransferPlan
Auto Trait Implementations§
impl Freeze for TransferPlan
impl RefUnwindSafe for TransferPlan
impl Send for TransferPlan
impl Sync for TransferPlan
impl Unpin for TransferPlan
impl UnsafeUnpin for TransferPlan
impl UnwindSafe for TransferPlan
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