pub struct BlockContext {
pub owner: BlockOwner,
pub cause: BlockCause,
}Expand description
Typed source and cause of a milestone block or its resolution. A present context is authoritative; unknown values never inherit legacy prose meaning.
Fields§
§owner: BlockOwner§cause: BlockCauseImplementations§
Source§impl BlockContext
impl BlockContext
pub const WORKSPACE_GATE: Self
pub const OPERATOR: Self
pub const fn engine(cause: BlockCause) -> Self
pub fn is_workspace_gate(self) -> bool
Trait Implementations§
Source§impl Clone for BlockContext
impl Clone for BlockContext
Source§fn clone(&self) -> BlockContext
fn clone(&self) -> BlockContext
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 BlockContext
Source§impl Debug for BlockContext
impl Debug for BlockContext
Source§impl<'de> Deserialize<'de> for BlockContext
impl<'de> Deserialize<'de> for BlockContext
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 BlockContext
Source§impl PartialEq for BlockContext
impl PartialEq for BlockContext
Source§impl Serialize for BlockContext
impl Serialize for BlockContext
impl StructuralPartialEq for BlockContext
Auto Trait Implementations§
impl Freeze for BlockContext
impl RefUnwindSafe for BlockContext
impl Send for BlockContext
impl Sync for BlockContext
impl Unpin for BlockContext
impl UnsafeUnpin for BlockContext
impl UnwindSafe for BlockContext
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