Trait veloren_common::link::Link
source · pub trait Link: Sized + Send + Sync + 'static {
type Error;
type CreateData<'a>: SystemData<'a>;
type PersistData<'a>: SystemData<'a>;
type DeleteData<'a>: SystemData<'a>;
// Required methods
fn create(
this: &LinkHandle<Self>,
data: &mut Self::CreateData<'_>,
) -> Result<(), Self::Error>;
fn persist(
this: &LinkHandle<Self>,
data: &mut Self::PersistData<'_>,
) -> bool;
fn delete(this: &LinkHandle<Self>, data: &mut Self::DeleteData<'_>);
}
Required Associated Types§
type Error
type CreateData<'a>: SystemData<'a>
type PersistData<'a>: SystemData<'a>
type DeleteData<'a>: SystemData<'a>
Required Methods§
fn create( this: &LinkHandle<Self>, data: &mut Self::CreateData<'_>, ) -> Result<(), Self::Error>
fn persist(this: &LinkHandle<Self>, data: &mut Self::PersistData<'_>) -> bool
fn delete(this: &LinkHandle<Self>, data: &mut Self::DeleteData<'_>)
Object Safety§
This trait is not object safe.