pub struct EntityProperty { /* private fields */ }Implementations§
Source§impl EntityProperty
impl EntityProperty
pub fn new() -> Self
pub fn host_owned(mutator_index: u8) -> Self
pub fn new_read( reader: &mut BitReader<'_>, converter: &dyn LocalEntityAndGlobalEntityConverter, ) -> Result<Self, SerdeErr>
pub fn read_write( reader: &mut BitReader<'_>, writer: &mut BitWriter, ) -> Result<(), SerdeErr>
pub fn read( &mut self, reader: &mut BitReader<'_>, converter: &dyn LocalEntityAndGlobalEntityConverter, ) -> Result<(), SerdeErr>
pub fn waiting_complete( &mut self, converter: &dyn LocalEntityAndGlobalEntityConverter, )
Sourcepub fn remote_publish(&mut self, mutator_index: u8, mutator: &PropertyMutator)
pub fn remote_publish(&mut self, mutator_index: u8, mutator: &PropertyMutator)
Migrate Remote Property to Public version
Sourcepub fn remote_unpublish(&mut self)
pub fn remote_unpublish(&mut self)
Migrate Remote Property to Public version
Sourcepub fn enable_delegation(
&mut self,
accessor: &EntityAuthAccessor,
mutator_opt: Option<(u8, &PropertyMutator)>,
)
pub fn enable_delegation( &mut self, accessor: &EntityAuthAccessor, mutator_opt: Option<(u8, &PropertyMutator)>, )
Migrate Host/RemotePublic Property to Delegated version
Sourcepub fn disable_delegation(&mut self)
pub fn disable_delegation(&mut self)
Migrate Delegated Property to Host-Owned (Public) version
pub fn set_mutator(&mut self, mutator: &PropertyMutator)
pub fn bit_length( &self, converter: &mut dyn LocalEntityAndGlobalEntityConverterMut, ) -> u32
pub fn write( &self, writer: &mut dyn BitWrite, converter: &mut dyn LocalEntityAndGlobalEntityConverterMut, )
pub fn get<E: Copy + Eq + Hash>( &self, converter: &dyn EntityAndGlobalEntityConverter<E>, ) -> Option<E>
pub fn set<E: Copy + Eq + Hash>( &mut self, converter: &dyn EntityAndGlobalEntityConverter<E>, entity: &E, )
pub fn set_to_none(&mut self)
pub fn mirror(&mut self, other: &EntityProperty)
pub fn waiting_local_entity(&self) -> Option<RemoteEntity>
pub fn write_local_entity( &self, converter: &dyn LocalEntityAndGlobalEntityConverter, writer: &mut BitWriter, )
Trait Implementations§
Source§impl Clone for EntityProperty
impl Clone for EntityProperty
Source§fn clone(&self) -> EntityProperty
fn clone(&self) -> EntityProperty
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for EntityProperty
impl !RefUnwindSafe for EntityProperty
impl Send for EntityProperty
impl Sync for EntityProperty
impl Unpin for EntityProperty
impl !UnwindSafe for EntityProperty
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