pub struct InstanceComponent {
pub ancestry_changed: ManagedRBXScriptSignal,
pub attribute_changed: ManagedRBXScriptSignal,
pub changed: ManagedRBXScriptSignal,
pub child_added: ManagedRBXScriptSignal,
pub child_removed: ManagedRBXScriptSignal,
pub descendant_added: ManagedRBXScriptSignal,
pub descendant_removing: ManagedRBXScriptSignal,
pub destroying: ManagedRBXScriptSignal,
pub attribute_changed_table: HashMap<String, ManagedRBXScriptSignal>,
pub property_changed_table: HashMap<String, ManagedRBXScriptSignal>,
/* private fields */
}Fields§
§ancestry_changed: ManagedRBXScriptSignal§attribute_changed: ManagedRBXScriptSignal§changed: ManagedRBXScriptSignal§child_added: ManagedRBXScriptSignal§child_removed: ManagedRBXScriptSignal§descendant_added: ManagedRBXScriptSignal§descendant_removing: ManagedRBXScriptSignal§destroying: ManagedRBXScriptSignal§attribute_changed_table: HashMap<String, ManagedRBXScriptSignal>§property_changed_table: HashMap<String, ManagedRBXScriptSignal>Implementations§
Source§impl InstanceComponent
impl InstanceComponent
pub fn get_instance_pointer(self: &RwLockReadGuard<'_, Self>) -> ManagedInstance
pub fn get_weak_instance_pointer( self: &RwLockReadGuard<'_, Self>, ) -> WeakManagedInstance
pub fn lua_get( self: &mut RwLockReadGuard<'_, Self>, lua: &Lua, key: &String, ) -> LuaResult<LuaValue>
pub fn emit_property_changed( this: &impl IReadInstanceComponent, lua: &Lua, property: &'static str, value: &LuaValue, ) -> LuaResult<()>
pub fn get_property_changed_signal( self: &mut RwLockReadGuard<'_, Self>, property: String, ) -> LuaResult<ManagedRBXScriptSignal>
pub fn lua_set( self: &mut RwLockWriteGuard<'_, Self>, lua: &Lua, key: &String, value: LuaValue, ) -> LuaResult<()>
Trait Implementations§
Source§impl Debug for InstanceComponent
impl Debug for InstanceComponent
Source§impl IInstanceComponent for InstanceComponent
impl IInstanceComponent for InstanceComponent
fn lua_get( self: &mut RwLockReadGuard<'_, Self>, _: &DynInstance, lua: &Lua, key: &String, ) -> Option<LuaResult<LuaValue>>
fn lua_set( self: &mut RwLockWriteGuard<'_, Self>, _: &DynInstance, lua: &Lua, key: &String, value: &LuaValue, ) -> Option<LuaResult<()>>
fn new(ptr: WeakManagedInstance, class_name: &'static str) -> Self
fn clone( self: &RwLockReadGuard<'_, Self>, lua: &Lua, ptr: &WeakManagedInstance, ) -> LuaResult<Self>
unsafe fn weak_to_strong_instance(ptr: WeakManagedInstance) -> ManagedInstance
Auto Trait Implementations§
impl !RefUnwindSafe for InstanceComponent
impl !Send for InstanceComponent
impl !Sync for InstanceComponent
impl !UnwindSafe for InstanceComponent
impl Freeze for InstanceComponent
impl Unpin for InstanceComponent
impl UnsafeUnpin for InstanceComponent
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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