pub struct WeakInstanceToken {
pub inner: Arc<dyn WeakInstanceTokenAny>,
}
Expand description
A type representing a weak pointer to a component. This is type erased because the bedrock library shouldn’t depend on Component Manager types.
Fields§
§inner: Arc<dyn WeakInstanceTokenAny>
Implementations§
Trait Implementations§
Source§impl Clone for WeakInstanceToken
impl Clone for WeakInstanceToken
Source§fn clone(&self) -> WeakInstanceToken
fn clone(&self) -> WeakInstanceToken
Returns a duplicate 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 Debug for WeakInstanceToken
impl Debug for WeakInstanceToken
Source§impl From<WeakInstanceToken> for Capability
impl From<WeakInstanceToken> for Capability
Source§fn from(f: WeakInstanceToken) -> Self
fn from(f: WeakInstanceToken) -> Self
Converts to this type from the input type.
Source§impl From<WeakInstanceToken> for Capability
impl From<WeakInstanceToken> for Capability
Source§fn from(_component: WeakInstanceToken) -> Self
fn from(_component: WeakInstanceToken) -> Self
Converts to this type from the input type.
Source§impl FromEnum<Capability> for WeakInstanceToken
impl FromEnum<Capability> for WeakInstanceToken
fn from_enum(e: &Capability) -> Option<&Self>
Source§impl RemotableCapability for WeakInstanceToken
impl RemotableCapability for WeakInstanceToken
Source§fn try_into_directory_entry(
self,
_scope: ExecutionScope,
) -> Result<Arc<dyn DirectoryEntry>, ConversionError>
fn try_into_directory_entry( self, _scope: ExecutionScope, ) -> Result<Arc<dyn DirectoryEntry>, ConversionError>
Attempt to convert
self
to a DirectoryEntry which can be served in a
VFS. Read moreAuto Trait Implementations§
impl Freeze for WeakInstanceToken
impl !RefUnwindSafe for WeakInstanceToken
impl Send for WeakInstanceToken
impl Sync for WeakInstanceToken
impl Unpin for WeakInstanceToken
impl !UnwindSafe for WeakInstanceToken
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, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
Source§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
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