DisposingBehavior
struct · ferroui-xaml-interactivity · v0.5.0
struct DisposingBehavior
A base class for behaviors with disposable resources: the resource
on_attached_override creates is disposed when
the behavior is detached.
The class is abstract. The type argument T of the reference is the runtime type passed to
construct (see BehaviorOfT).
Members
TYPE
const TYPE: &'static $crate::TypeInfo
The runtime type of this class.
to_ref
fn to_ref(self: &Self) -> $crate::Ref<DisposingBehavior>
Returns a strong reference to this object.
on_attached_override
fn on_attached_override(self: &Self) -> Rc<dyn IDisposable>
Called after the behavior is attached to the associated object.
Returns a disposable resource to be disposed when the behavior is detached.
construct
fn construct(associated_type: &'static TypeInfo) -> Self
Creates the class data for behaviors attached to objects of associated_type; see
ferroui_base::FerroObject::construct.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeDisposingBehaviorImplExtStyledElementBehaviorImplExtBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyFerroObjectImplExtStyledElementImplExtClassDefaultsErasedDestructorIntoEitherDerefUpcast<T>Upcast<DisposingBehavior>StaticTypeObjectTypeSubclassable<T>FerroObjectImplStyledElementImplDisposingBehaviorImplStyledElementBehaviorImpl
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.