pub struct Transfer {
pub at: usize,
pub label: String,
pub from: MemoryDomainKind,
pub to: MemoryDomainKind,
pub kind: TransferKind,
pub frame_copy: bool,
}Expand description
A memory-domain transition at a node: it consumed from and emits to.
Fields§
§at: usizeNode index where the domain changes.
label: StringThe node’s display label.
from: MemoryDomainKindThe domain consumed on the input edge.
to: MemoryDomainKindThe domain emitted on the output edge.
kind: TransferKindThe transfer’s cost class.
frame_copy: boolWhether a raw heavy buffer (raw video / PCM audio / tensor) crosses the boundary on both sides: a real frame copy, as opposed to a codec boundary.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Transfer
impl RefUnwindSafe for Transfer
impl Send for Transfer
impl Sync for Transfer
impl Unpin for Transfer
impl UnsafeUnpin for Transfer
impl UnwindSafe for Transfer
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