Skip to main content

Cargo

Struct Cargo 

Source
pub struct Cargo<'a> {
    pub input: &'a Value,
    pub known: &'a [(NodeId, Value)],
    pub keys: &'a [(NodeId, Keys)],
    pub placement: &'a Placement,
    pub memory: &'a Memory,
}
Expand description

What a plan needs beyond itself in order to run elsewhere.

Fields§

§input: &'a Value

The graph’s input, for the steps over there that read from nobody.

§known: &'a [(NodeId, Value)]

What was already produced here that the plan over there reads and does not produce. Only that: the wire is the expensive part.

§keys: &'a [(NodeId, Keys)]

What each of those is called. Without them the slice over there can name nothing it produces, and a cache that stops at the process boundary is a cache nobody can rely on.

§placement: &'a Placement

Where each node runs. It travels because a placement is data and the catalog is not.

§memory: &'a Memory

What is remembered about each node, for the same reason and by the same rule: it is data. Without it the other side does not know what is frozen, what is worth keeping, or what any of it is called.

Auto Trait Implementations§

§

impl<'a> Freeze for Cargo<'a>

§

impl<'a> !RefUnwindSafe for Cargo<'a>

§

impl<'a> Send for Cargo<'a>

§

impl<'a> Sync for Cargo<'a>

§

impl<'a> Unpin for Cargo<'a>

§

impl<'a> UnsafeUnpin for Cargo<'a>

§

impl<'a> !UnwindSafe for Cargo<'a>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.