pub struct ObjectHeader {
pub id: Ref,
pub kind: Symbol,
pub trust: TrustLevel,
}Expand description
Identity and trust header attached to every runtime object.
Fields§
§id: RefStable reference identifying the object.
kind: SymbolSymbol naming the object’s kind.
trust: TrustLevelTrust level governing the object’s capabilities.
Trait Implementations§
Source§impl Clone for ObjectHeader
impl Clone for ObjectHeader
Source§fn clone(&self) -> ObjectHeader
fn clone(&self) -> ObjectHeader
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 ObjectHeader
impl Debug for ObjectHeader
impl Eq for ObjectHeader
Source§impl PartialEq for ObjectHeader
impl PartialEq for ObjectHeader
Source§fn eq(&self, other: &ObjectHeader) -> bool
fn eq(&self, other: &ObjectHeader) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ObjectHeader
Auto Trait Implementations§
impl Freeze for ObjectHeader
impl RefUnwindSafe for ObjectHeader
impl Send for ObjectHeader
impl Sync for ObjectHeader
impl Unpin for ObjectHeader
impl UnsafeUnpin for ObjectHeader
impl UnwindSafe for ObjectHeader
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