Skip to main content

ReadoutsBindings

Struct ReadoutsBindings 

Source
pub struct ReadoutsBindings {
    pub on_session_start: Vec<String>,
    pub on_session_end: Vec<String>,
    pub on_phase_start: Vec<String>,
    pub on_phase_end: Vec<String>,
    pub on_each_start: Vec<String>,
    pub on_each_end: Vec<String>,
    pub on_scope_start: Vec<String>,
    pub on_scope_end: Vec<String>,
    pub on_update: Vec<String>,
}
Expand description

Per-event-slot list of readout body strings declared in the workload’s readouts: block. See SRD-63 §5.0 for the three legal forms.

The lower-case slot keys here mirror the [Event::slot_name] return values (on_phase_end, on_update, …) so workload yaml uses the same vocabulary the design doc uses.

Fields§

§on_session_start: Vec<String>§on_session_end: Vec<String>§on_phase_start: Vec<String>§on_phase_end: Vec<String>§on_each_start: Vec<String>§on_each_end: Vec<String>§on_scope_start: Vec<String>§on_scope_end: Vec<String>§on_update: Vec<String>

Implementations§

Source§

impl ReadoutsBindings

Source

pub fn is_empty(&self) -> bool

True when no slot has any binding. Workloads in this state fall through to the built-in defaults activity.rs uses today.

Source

pub fn get(&self, slot_name: &str) -> &[String]

Look up a slot’s body list by its slot_name (e.g. "on_update"). Returns an empty slice when the slot has no bindings.

Trait Implementations§

Source§

impl Clone for ReadoutsBindings

Source§

fn clone(&self) -> Self

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 Debug for ReadoutsBindings

Source§

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

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

impl Default for ReadoutsBindings

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for ReadoutsBindings

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 Serialize for ReadoutsBindings

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§

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.