Skip to main content

EntityBodySlot

Trait EntityBodySlot 

Source
pub trait EntityBodySlot {
    type Value;

    const KIND_NAME: &'static str;

    // Required methods
    fn project(body: &EntityBody) -> Option<&Self::Value>;
    fn project_mut(body: &mut EntityBody) -> Option<&mut Self::Value>;
}

Required Associated Constants§

Source

const KIND_NAME: &'static str

Required Associated Types§

Required Methods§

Source

fn project(body: &EntityBody) -> Option<&Self::Value>

Source

fn project_mut(body: &mut EntityBody) -> Option<&mut Self::Value>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl EntityBodySlot for AetherEntity

Source§

const KIND_NAME: &'static str = "Aether"

Source§

type Value = AetherEntity

Source§

impl EntityBodySlot for BroadcastRxEntity

Source§

const KIND_NAME: &'static str = "BroadcastRx"

Source§

type Value = BroadcastRxEntity

Source§

impl EntityBodySlot for BroadcastTxEntity

Source§

const KIND_NAME: &'static str = "BroadcastTx"

Source§

type Value = BroadcastTxEntity

Source§

impl EntityBodySlot for CommandEntity

Source§

const KIND_NAME: &'static str = "Command"

Source§

type Value = CommandEntity

Source§

impl EntityBodySlot for CustomEntity

Source§

const KIND_NAME: &'static str = "Custom"

Source§

type Value = CustomEntity

Source§

impl EntityBodySlot for FileOpEntity

Source§

const KIND_NAME: &'static str = "FileOp"

Source§

type Value = FileOpEntity

Source§

impl EntityBodySlot for FutureEntity

Source§

const KIND_NAME: &'static str = "Future"

Source§

type Value = FutureEntity

Source§

impl EntityBodySlot for LockEntity

Source§

const KIND_NAME: &'static str = "Lock"

Source§

type Value = LockEntity

Source§

impl EntityBodySlot for MpscRxEntity

Source§

const KIND_NAME: &'static str = "MpscRx"

Source§

type Value = MpscRxEntity

Source§

impl EntityBodySlot for MpscTxEntity

Source§

const KIND_NAME: &'static str = "MpscTx"

Source§

type Value = MpscTxEntity

Source§

impl EntityBodySlot for NetAcceptEntity

Source§

const KIND_NAME: &'static str = "NetAccept"

Source§

type Value = NetAcceptEntity

Source§

impl EntityBodySlot for NetConnectEntity

Source§

const KIND_NAME: &'static str = "NetConnect"

Source§

type Value = NetConnectEntity

Source§

impl EntityBodySlot for NetReadEntity

Source§

const KIND_NAME: &'static str = "NetRead"

Source§

type Value = NetReadEntity

Source§

impl EntityBodySlot for NetWriteEntity

Source§

const KIND_NAME: &'static str = "NetWrite"

Source§

type Value = NetWriteEntity

Source§

impl EntityBodySlot for NotifyEntity

Source§

const KIND_NAME: &'static str = "Notify"

Source§

type Value = NotifyEntity

Source§

impl EntityBodySlot for OnceCellEntity

Source§

const KIND_NAME: &'static str = "OnceCell"

Source§

type Value = OnceCellEntity

Source§

impl EntityBodySlot for OneshotRxEntity

Source§

const KIND_NAME: &'static str = "OneshotRx"

Source§

type Value = OneshotRxEntity

Source§

impl EntityBodySlot for OneshotTxEntity

Source§

const KIND_NAME: &'static str = "OneshotTx"

Source§

type Value = OneshotTxEntity

Source§

impl EntityBodySlot for RequestEntity

Source§

const KIND_NAME: &'static str = "Request"

Source§

type Value = RequestEntity

Source§

impl EntityBodySlot for ResponseEntity

Source§

const KIND_NAME: &'static str = "Response"

Source§

type Value = ResponseEntity

Source§

impl EntityBodySlot for SemaphoreEntity

Source§

const KIND_NAME: &'static str = "Semaphore"

Source§

type Value = SemaphoreEntity

Source§

impl EntityBodySlot for WatchRxEntity

Source§

const KIND_NAME: &'static str = "WatchRx"

Source§

type Value = WatchRxEntity

Source§

impl EntityBodySlot for WatchTxEntity

Source§

const KIND_NAME: &'static str = "WatchTx"

Source§

type Value = WatchTxEntity