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<'_>)
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.