pub struct RetainedView { /* private fields */ }Implementations§
Source§impl RetainedView
impl RetainedView
pub fn new<T: Node + 'static>(root: &T) -> Self
pub fn root(&self) -> NodeRef
pub fn is_active(&self) -> bool
pub fn is_disposed(&self) -> bool
pub fn keep_alive<T: 'static>(self, resource: T) -> Self
pub fn on_activate(self, handler: impl Fn(&RetainedView) + 'static) -> Self
pub fn on_deactivate(self, handler: impl Fn(&RetainedView) + 'static) -> Self
pub fn on_dispose(self, handler: impl FnOnce() + 'static) -> Self
pub fn activate(&self)
pub fn deactivate(&self)
pub fn dispose(&self)
Trait Implementations§
Source§impl Clone for RetainedView
impl Clone for RetainedView
Source§fn clone(&self) -> RetainedView
fn clone(&self) -> RetainedView
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 !RefUnwindSafe for RetainedView
impl !Send for RetainedView
impl !Sync for RetainedView
impl !UnwindSafe for RetainedView
impl Freeze for RetainedView
impl Unpin for RetainedView
impl UnsafeUnpin for RetainedView
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