Skip to main content

LoaderState

Struct LoaderState 

Source
pub struct LoaderState<D, S, T = (), C = ()> {
Show 13 fields pub schema_version: u32, pub dataset_identity: String, pub epoch: u64, pub iterator_generation: u64, pub next_batch: u64, pub next_logical_sample: u64, pub dataset: D, pub sampler: S, pub transform: T, pub collate: C, pub rng_derivation_version: u32, pub worker_seed_derivation_version: u32, pub configuration: LoaderConfiguration,
}
Expand description

Versioned state for the next batch visible from a map loader.

Fields§

§schema_version: u32

State schema version.

§dataset_identity: String

Caller-defined identity for the exact dataset contents.

§epoch: u64

Active sampler epoch.

§iterator_generation: u64

Transport generation. Serial state is always zero.

§next_batch: u64

Next consumer-visible batch number.

§next_logical_sample: u64

Number of logical sample occurrences already consumed.

§dataset: D

Dataset component state.

§sampler: S

Active sampler or batch-source cursor state.

§transform: T

Serial transform state or a versioned worker transform envelope.

§collate: C

Effective coordinator collator/converter state.

§rng_derivation_version: u32

Task-RNG derivation version.

§worker_seed_derivation_version: u32

Worker-seed derivation version.

§configuration: LoaderConfiguration

Exact loader configuration identity.

Trait Implementations§

Source§

impl<D: Clone, S: Clone, T: Clone, C: Clone> Clone for LoaderState<D, S, T, C>

Source§

fn clone(&self) -> LoaderState<D, S, T, C>

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<D: Debug, S: Debug, T: Debug, C: Debug> Debug for LoaderState<D, S, T, C>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de, D, S, T, C> Deserialize<'de> for LoaderState<D, S, T, C>
where D: Deserialize<'de>, S: Deserialize<'de>, T: Deserialize<'de>, C: Deserialize<'de>,

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl<D, S, T, C> Serialize for LoaderState<D, S, T, C>
where D: Serialize, S: Serialize, T: Serialize, C: Serialize,

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

§

impl<D, S, T, C> Freeze for LoaderState<D, S, T, C>
where D: Freeze, S: Freeze, T: Freeze, C: Freeze,

§

impl<D, S, T, C> RefUnwindSafe for LoaderState<D, S, T, C>

§

impl<D, S, T, C> Send for LoaderState<D, S, T, C>
where D: Send, S: Send, T: Send, C: Send,

§

impl<D, S, T, C> Sync for LoaderState<D, S, T, C>
where D: Sync, S: Sync, T: Sync, C: Sync,

§

impl<D, S, T, C> Unpin for LoaderState<D, S, T, C>
where D: Unpin, S: Unpin, T: Unpin, C: Unpin,

§

impl<D, S, T, C> UnsafeUnpin for LoaderState<D, S, T, C>

§

impl<D, S, T, C> UnwindSafe for LoaderState<D, S, T, C>

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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

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> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

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

Source§

type Error = !

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

fn try_from(value: U) -> Result<T, !>

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.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V