Struct naia_shared::EntityActionReceiver
source · [−]pub struct EntityActionReceiver<E: Copy + Hash + Eq, K: ProtocolKindType> { /* private fields */ }
Implementations
sourceimpl<E: Copy + Hash + Eq, K: ProtocolKindType> EntityActionReceiver<E, K>
impl<E: Copy + Hash + Eq, K: ProtocolKindType> EntityActionReceiver<E, K>
pub fn new() -> Self
pub fn buffer_action(&mut self, action_id: ActionId, action: EntityAction<E, K>)
pub fn receive_actions(&mut self) -> Vec<EntityAction<E, K>>
Auto Trait Implementations
impl<E, K> RefUnwindSafe for EntityActionReceiver<E, K> where
E: RefUnwindSafe,
K: RefUnwindSafe,
impl<E, K> Send for EntityActionReceiver<E, K> where
E: Send,
impl<E, K> Sync for EntityActionReceiver<E, K> where
E: Sync,
impl<E, K> Unpin for EntityActionReceiver<E, K> where
E: Unpin,
K: Unpin,
impl<E, K> UnwindSafe for EntityActionReceiver<E, K> where
E: UnwindSafe,
K: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more