pub struct MountContext {
pub component_id: ComponentId,
pub parent_id: Option<ComponentId>,
pub timestamp: Instant,
pub options: MountOptions,
}
Expand description
Context provided during component mounting
Fields§
§component_id: ComponentId
Component ID being mounted
parent_id: Option<ComponentId>
Parent component ID (if any)
timestamp: Instant
Mount timestamp
options: MountOptions
Mount options and configuration
Implementations§
Source§impl MountContext
impl MountContext
Sourcepub fn new(component_id: ComponentId) -> Self
pub fn new(component_id: ComponentId) -> Self
Create a new mount context
Sourcepub fn with_parent(component_id: ComponentId, parent_id: ComponentId) -> Self
pub fn with_parent(component_id: ComponentId, parent_id: ComponentId) -> Self
Create a mount context with parent
Sourcepub fn with_options(self, options: MountOptions) -> Self
pub fn with_options(self, options: MountOptions) -> Self
Set mount options
Trait Implementations§
Source§impl Clone for MountContext
impl Clone for MountContext
Source§fn clone(&self) -> MountContext
fn clone(&self) -> MountContext
Returns a copy 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 MountContext
impl RefUnwindSafe for MountContext
impl Send for MountContext
impl Sync for MountContext
impl Unpin for MountContext
impl UnwindSafe for MountContext
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Event for T
impl<T> Event for T
Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert to Any for downcasting (mutable)
Source§fn event_type(&self) -> &'static str
fn event_type(&self) -> &'static str
Get the event type name
Source§impl<T> Props for T
impl<T> Props for T
Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert to mutable Any for downcasting