pub struct ExecutionOrigin { /* private fields */ }Expand description
The supervisor-minted origin of one real execution.
Implementations§
Source§impl ExecutionOrigin
impl ExecutionOrigin
Sourcepub fn try_mint() -> Option<Self>
pub fn try_mint() -> Option<Self>
Mint an origin now, returning None when the host boot clock is unreadable.
Sourcepub fn mint() -> Self
pub fn mint() -> Self
Mint an origin now, panicking on a host without a readable boot clock.
A supervisor that wants to report the failure rather than abort calls
ExecutionOrigin::try_mint instead. This form exists for the
bootstrap path, where a host whose monotonic clock cannot be read cannot
time an execution at all and there is nothing to degrade to.
Sourcepub const fn new(boot: BootId, boot_ns: u64, timeline: TimelineId) -> Self
pub const fn new(boot: BootId, boot_ns: u64, timeline: TimelineId) -> Self
Rebuild an origin from its typed fields.
The counterpart to the accessors below, for a consumer that already holds the three values: a decoded launch record, or a test pinning an origin to a specific boot.
Sourcepub const fn timeline(self) -> TimelineId
pub const fn timeline(self) -> TimelineId
The real execution’s timeline.
Trait Implementations§
Source§impl Clone for ExecutionOrigin
impl Clone for ExecutionOrigin
Source§fn clone(&self) -> ExecutionOrigin
fn clone(&self) -> ExecutionOrigin
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 ExecutionOrigin
Source§impl Debug for ExecutionOrigin
impl Debug for ExecutionOrigin
impl Eq for ExecutionOrigin
Source§impl PartialEq for ExecutionOrigin
impl PartialEq for ExecutionOrigin
impl StructuralPartialEq for ExecutionOrigin
Auto Trait Implementations§
impl Freeze for ExecutionOrigin
impl RefUnwindSafe for ExecutionOrigin
impl Send for ExecutionOrigin
impl Sync for ExecutionOrigin
impl Unpin for ExecutionOrigin
impl UnsafeUnpin for ExecutionOrigin
impl UnwindSafe for ExecutionOrigin
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