pub enum ExtendedInstanceInterface<C: ComponentInstanceInterface> {
Component(Arc<C>),
AboveRoot(Arc<C::TopInstance>),
}
Expand description
Either a type implementing ComponentInstanceInterface
or its TopInstance
.
Variants§
Component(Arc<C>)
AboveRoot(Arc<C::TopInstance>)
Trait Implementations§
source§impl<C: Clone + ComponentInstanceInterface> Clone for ExtendedInstanceInterface<C>where
C::TopInstance: Clone,
impl<C: Clone + ComponentInstanceInterface> Clone for ExtendedInstanceInterface<C>where
C::TopInstance: Clone,
source§fn clone(&self) -> ExtendedInstanceInterface<C>
fn clone(&self) -> ExtendedInstanceInterface<C>
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 moresource§impl<C: Debug + ComponentInstanceInterface> Debug for ExtendedInstanceInterface<C>where
C::TopInstance: Debug,
impl<C: Debug + ComponentInstanceInterface> Debug for ExtendedInstanceInterface<C>where
C::TopInstance: Debug,
source§impl<C: ComponentInstanceInterface> From<&ExtendedInstanceInterface<C>> for WeakExtendedInstanceInterface<C>
impl<C: ComponentInstanceInterface> From<&ExtendedInstanceInterface<C>> for WeakExtendedInstanceInterface<C>
source§fn from(extended: &ExtendedInstanceInterface<C>) -> Self
fn from(extended: &ExtendedInstanceInterface<C>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<C> Freeze for ExtendedInstanceInterface<C>
impl<C> RefUnwindSafe for ExtendedInstanceInterface<C>where
C: Sync + Send + RefUnwindSafe,
<C as ComponentInstanceInterface>::TopInstance: RefUnwindSafe,
impl<C> Send for ExtendedInstanceInterface<C>
impl<C> Sync for ExtendedInstanceInterface<C>
impl<C> Unpin for ExtendedInstanceInterface<C>
impl<C> UnwindSafe for ExtendedInstanceInterface<C>where
C: Sync + Send + RefUnwindSafe,
<C as ComponentInstanceInterface>::TopInstance: RefUnwindSafe,
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