Struct specs_messenger::Messenger [−][src]
pub struct Messenger<T> { /* fields omitted */ }
Methods
impl<T> Messenger<T> where
T: Clone,
[src]
impl<T> Messenger<T> where
T: Clone,
pub fn new() -> Self
[src]
pub fn new() -> Self
pub fn send(&mut self, to: Entity, msg: T) -> &mut Self
[src]
pub fn send(&mut self, to: Entity, msg: T) -> &mut Self
pub fn broadcast(&mut self, msg: T) -> &mut Self
[src]
pub fn broadcast(&mut self, msg: T) -> &mut Self
pub fn incoming_ref(&self) -> Iter<(Entity, T)>
[src]
pub fn incoming_ref(&self) -> Iter<(Entity, T)>
pub fn incoming_mut(&mut self) -> IterMut<(Entity, T)>
[src]
pub fn incoming_mut(&mut self) -> IterMut<(Entity, T)>
pub fn incoming(&mut self) -> Drain<(Entity, T)>
[src]
pub fn incoming(&mut self) -> Drain<(Entity, T)>
Trait Implementations
impl<T: Debug> Debug for Messenger<T>
[src]
impl<T: Debug> Debug for Messenger<T>
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<T> Component for Messenger<T> where
T: 'static + Sync + Send,
[src]
impl<T> Component for Messenger<T> where
T: 'static + Sync + Send,
type Storage = VecStorage<Self>
Associated storage type for this component.
impl<T> Default for Messenger<T>
[src]
impl<T> Default for Messenger<T>