pub trait NetEntityConverter<E: Copy + Eq + Hash> {
    // Required methods
    fn entity_to_net_entity(
        &self,
        entity: &E
    ) -> Result<OwnedNetEntity, EntityDoesNotExistError>;
    fn net_entity_to_entity(
        &self,
        net_entity: &OwnedNetEntity
    ) -> Result<E, EntityDoesNotExistError>;
}

Required Methods§

Implementors§