pub trait LocalEntityAndGlobalEntityConverter {
// Required methods
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>;
}