Skip to main content

Global

Trait Global 

Source
pub trait Global<CTX>
where Self: Sized + Debug, CTX: Context<GMSG = Self>,
{ // Required methods fn id(&self) -> CTX::MID; fn inner_name(&self) -> String; }
Expand description

The global message type.

Required Methods§

Source

fn id(&self) -> CTX::MID

Source

fn inner_name(&self) -> String

Get the message name of the inner message type

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 Global<SessionA> for apis::example::session_a::GlobalMessage

Source§

impl Global<SessionB> for apis::example::session_b::GlobalMessage