Skip to main content

Touch

Enum Touch 

Source
pub enum Touch {
    ComponentRead {
        id: u8,
        type_name: &'static str,
    },
    ComponentWrite {
        id: u8,
        type_name: &'static str,
    },
    Structural {
        op: &'static str,
    },
    Resource {
        type_id: TypeId,
        type_name: &'static str,
        write: bool,
    },
    Blob {
        op: &'static str,
    },
}
Expand description

What a context accessor touched. Component ids are the registry discriminants; resources and events report their TypeId for the client’s id registry to resolve.

Variants§

§

ComponentRead

A component column was read.

Fields

§id: u8

The component’s registry discriminant.

§type_name: &'static str

The component type’s name, for the assertion message.

§

ComponentWrite

A component column was written.

Fields

§id: u8

The component’s registry discriminant.

§type_name: &'static str

The component type’s name, for the assertion message.

§

Structural

Structural change (push/insert/remove/despawn/drain): reorders columns and the join index, so it requires exclusive access.

Fields

§op: &'static str

The operation that changed structure.

§

Resource

A resource or event queue was touched.

Fields

§type_id: TypeId

The resource type’s id, resolved by the client’s id registry.

§type_name: &'static str

The resource type’s name, for the assertion message.

§write: bool

true for a write, false for a read.

§

Blob

Compiled-payload access mutates the blob store’s residency.

Fields

§op: &'static str

The operation that touched the blob store.

Auto Trait Implementations§

§

impl Freeze for Touch

§

impl RefUnwindSafe for Touch

§

impl Send for Touch

§

impl Sync for Touch

§

impl Unpin for Touch

§

impl UnsafeUnpin for Touch

§

impl UnwindSafe for Touch

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 = !

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.