Struct naia_shared::EntityConverter
source · pub struct EntityConverter<'a, 'b, E: Eq + Copy + Hash> { /* private fields */ }
Implementations§
source§impl<'a, 'b, E: Eq + Copy + Hash> EntityConverter<'a, 'b, E>
impl<'a, 'b, E: Eq + Copy + Hash> EntityConverter<'a, 'b, E>
pub fn new( global_entity_converter: &'a dyn EntityAndGlobalEntityConverter<E>, local_entity_converter: &'b dyn EntityAndLocalEntityConverter<E> ) -> Self
Trait Implementations§
source§impl<'a, 'b, E: Copy + Eq + Hash> LocalEntityAndGlobalEntityConverter for EntityConverter<'a, 'b, E>
impl<'a, 'b, E: Copy + Eq + Hash> LocalEntityAndGlobalEntityConverter for EntityConverter<'a, 'b, E>
fn global_entity_to_host_entity( &self, global_entity: &GlobalEntity ) -> Result<HostEntity, EntityDoesNotExistError>
fn global_entity_to_remote_entity( &self, global_entity: &GlobalEntity ) -> Result<RemoteEntity, EntityDoesNotExistError>
fn global_entity_to_owned_entity( &self, global_entity: &GlobalEntity ) -> Result<OwnedLocalEntity, EntityDoesNotExistError>
fn host_entity_to_global_entity( &self, host_entity: &HostEntity ) -> Result<GlobalEntity, EntityDoesNotExistError>
fn remote_entity_to_global_entity( &self, remote_entity: &RemoteEntity ) -> Result<GlobalEntity, EntityDoesNotExistError>
Auto Trait Implementations§
impl<'a, 'b, E> !RefUnwindSafe for EntityConverter<'a, 'b, E>
impl<'a, 'b, E> !Send for EntityConverter<'a, 'b, E>
impl<'a, 'b, E> !Sync for EntityConverter<'a, 'b, E>
impl<'a, 'b, E> Unpin for EntityConverter<'a, 'b, E>
impl<'a, 'b, E> !UnwindSafe for EntityConverter<'a, 'b, E>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more