pub struct ExecutionRealm(/* private fields */);Expand description
An opaque execution realm token. See Target for why this is a newtype,
why the ordinals are wire, and why Debug is hand-written.
Implementations§
Source§impl ExecutionRealm
impl ExecutionRealm
Sourcepub const HostStream: Self
pub const HostStream: Self
Historically assigned 1.
Sourcepub const BlutDurable: Self
pub const BlutDurable: Self
Historically assigned 2.
pub const fn token(self) -> u32
pub const fn from_token(token: u32) -> Self
pub const fn is_known(self) -> bool
Sourcepub const fn target(self) -> Target
pub const fn target(self) -> Target
The target a realm lowers to.
Kept as a total function on the realm because the compile-side selection and the decode-side authorization must not be able to disagree; an unknown realm maps to an unknown target rather than to a default, so a forged plan cannot borrow the host’s target by being out of range.
Trait Implementations§
Source§impl Clone for ExecutionRealm
impl Clone for ExecutionRealm
Source§fn clone(&self) -> ExecutionRealm
fn clone(&self) -> ExecutionRealm
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 moreimpl Copy for ExecutionRealm
Source§impl Debug for ExecutionRealm
impl Debug for ExecutionRealm
Source§impl<'de> Deserialize<'de> for ExecutionRealm
impl<'de> Deserialize<'de> for ExecutionRealm
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ExecutionRealm
Source§impl Hash for ExecutionRealm
impl Hash for ExecutionRealm
Source§impl Ord for ExecutionRealm
impl Ord for ExecutionRealm
Source§fn cmp(&self, other: &ExecutionRealm) -> Ordering
fn cmp(&self, other: &ExecutionRealm) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for ExecutionRealm
impl PartialEq for ExecutionRealm
Source§impl PartialOrd for ExecutionRealm
impl PartialOrd for ExecutionRealm
Source§impl Serialize for ExecutionRealm
impl Serialize for ExecutionRealm
impl StructuralPartialEq for ExecutionRealm
Auto Trait Implementations§
impl Freeze for ExecutionRealm
impl RefUnwindSafe for ExecutionRealm
impl Send for ExecutionRealm
impl Sync for ExecutionRealm
impl Unpin for ExecutionRealm
impl UnsafeUnpin for ExecutionRealm
impl UnwindSafe for ExecutionRealm
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