pub struct ForeignRef {
pub host_identity: String,
pub handle: u64,
pub generation: u64,
pub type_identity: ForeignTypeIdentity,
pub ownership: ForeignOwnership,
pub affinity: ForeignAffinity,
pub lifetime: ForeignLifetime,
}Expand description
Opaque live foreign-runtime reference. The host registry owns the actual resource; the generation fences stale handles after host/session restart.
Fields§
§host_identity: String§handle: u64§generation: u64§type_identity: ForeignTypeIdentity§ownership: ForeignOwnership§affinity: ForeignAffinity§lifetime: ForeignLifetimeImplementations§
Source§impl ForeignRef
impl ForeignRef
pub fn is_same_resource(&self, other: &Self) -> bool
Trait Implementations§
Source§impl Clone for ForeignRef
impl Clone for ForeignRef
Source§fn clone(&self) -> ForeignRef
fn clone(&self) -> ForeignRef
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 moreSource§impl Debug for ForeignRef
impl Debug for ForeignRef
impl Eq for ForeignRef
Source§impl PartialEq for ForeignRef
impl PartialEq for ForeignRef
impl StructuralPartialEq for ForeignRef
Auto Trait Implementations§
impl Freeze for ForeignRef
impl RefUnwindSafe for ForeignRef
impl Send for ForeignRef
impl Sync for ForeignRef
impl Unpin for ForeignRef
impl UnsafeUnpin for ForeignRef
impl UnwindSafe for ForeignRef
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.