pub struct NamedTransfer {
pub name: String,
pub direction: TransferDirection,
pub kind: TransferKind,
pub from: String,
pub to: String,
pub bytes: u64,
}Expand description
One named transfer in a distributed plan.
Fields§
§name: StringTransfer name used in telemetry.
direction: TransferDirectionDirection.
kind: TransferKindKind.
from: StringSource node id.
to: StringDestination node id.
bytes: u64Approximate payload bytes.
Implementations§
Source§impl NamedTransfer
impl NamedTransfer
Sourcepub fn try_new(
name: impl Into<String>,
direction: TransferDirection,
kind: TransferKind,
from: impl Into<String>,
to: impl Into<String>,
bytes: u64,
) -> DistributeResult<Self>
pub fn try_new( name: impl Into<String>, direction: TransferDirection, kind: TransferKind, from: impl Into<String>, to: impl Into<String>, bytes: u64, ) -> DistributeResult<Self>
Creates a validated named transfer.
Sourcepub fn counted_copy_bytes(&self) -> u64
pub fn counted_copy_bytes(&self) -> u64
Bytes counted as measurable copies (zero-copy handoffs are 0).
Trait Implementations§
Source§impl Clone for NamedTransfer
impl Clone for NamedTransfer
Source§fn clone(&self) -> NamedTransfer
fn clone(&self) -> NamedTransfer
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 NamedTransfer
impl Debug for NamedTransfer
Source§impl PartialEq for NamedTransfer
impl PartialEq for NamedTransfer
Source§fn eq(&self, other: &NamedTransfer) -> bool
fn eq(&self, other: &NamedTransfer) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for NamedTransfer
impl StructuralPartialEq for NamedTransfer
Auto Trait Implementations§
impl Freeze for NamedTransfer
impl RefUnwindSafe for NamedTransfer
impl Send for NamedTransfer
impl Sync for NamedTransfer
impl Unpin for NamedTransfer
impl UnsafeUnpin for NamedTransfer
impl UnwindSafe for NamedTransfer
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