Struct veloren_common::tether::Tethered
source · pub struct Tethered {
pub leader: Uid,
pub follower: Uid,
pub tether_length: f32,
}
Fields§
§leader: Uid
§follower: Uid
§tether_length: f32
Trait Implementations§
source§impl<'de> Deserialize<'de> for Tethered
impl<'de> Deserialize<'de> for Tethered
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Link for Tethered
impl Link for Tethered
type CreateData<'a> = (Read<'a, IdMaps>, Storage<'a, Is<Leader>, FetchMut<'a, MaskedStorage<Is<Leader>>>>, Storage<'a, Is<Follower>, FetchMut<'a, MaskedStorage<Is<Follower>>>>, Storage<'a, Is<Rider>, Fetch<'a, MaskedStorage<Is<Rider>>>>, Storage<'a, Is<VolumeRider>, Fetch<'a, MaskedStorage<Is<VolumeRider>>>>)
type DeleteData<'a> = (Read<'a, IdMaps>, Storage<'a, Is<Leader>, FetchMut<'a, MaskedStorage<Is<Leader>>>>, Storage<'a, Is<Follower>, FetchMut<'a, MaskedStorage<Is<Follower>>>>)
type Error = TetherError
type PersistData<'a> = (Read<'a, IdMaps>, Read<'a, EntitiesRes>, Storage<'a, Health, Fetch<'a, MaskedStorage<Health>>>, Storage<'a, Is<Leader>, Fetch<'a, MaskedStorage<Is<Leader>>>>, Storage<'a, Is<Follower>, Fetch<'a, MaskedStorage<Is<Follower>>>>)
fn create( this: &LinkHandle<Self>, (id_maps, is_leaders, is_followers, is_riders, is_volume_rider): &mut Self::CreateData<'_>, ) -> Result<(), Self::Error>
fn persist( this: &LinkHandle<Self>, (id_maps, entities, healths, is_leaders, is_followers): &mut Self::PersistData<'_>, ) -> bool
fn delete( this: &LinkHandle<Self>, (id_maps, is_leaders, is_followers): &mut Self::DeleteData<'_>, )
Auto Trait Implementations§
impl Freeze for Tethered
impl RefUnwindSafe for Tethered
impl Send for Tethered
impl Sync for Tethered
impl Unpin for Tethered
impl UnwindSafe for Tethered
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more