pub struct Context { /* private fields */ }Implementations§
Source§impl Context
impl Context
pub fn from_instance<A: Authentication>( inst: &Instance<'_>, field: &str, validators: Option<&[String]>, auth: &A, ) -> Result<Self>
pub fn id(&self) -> &str
pub fn committee(&self) -> &Committee
pub fn ownership(&self) -> Ownership
pub fn pool(&self) -> Option<&str>
pub fn root_epoch(&self, account: &str) -> Result<String>
pub fn cancellation_request( &self, owner: &str, operation: &str, ) -> Result<SigningRequest>
Sourcepub fn version_request(
&self,
manifest: &VersionManifest,
actor: &str,
) -> Result<SigningRequest>
pub fn version_request( &self, manifest: &VersionManifest, actor: &str, ) -> Result<SigningRequest>
External actor signing request; receiving replicas validate every field.
Sourcepub fn owned_seal_request(
&self,
manifest: &VersionManifest,
actor: &str,
) -> Result<SigningRequest>
pub fn owned_seal_request( &self, manifest: &VersionManifest, actor: &str, ) -> Result<SigningRequest>
Permanent account conversion requires a distinct owner signature domain.
Trait Implementations§
Auto Trait Implementations§
impl Forget for Context
impl Freeze for Contextwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
*const LeafNode<String, SExpr> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(String, SExpr)>>: Freeze,
PhantomData<String>: Freeze,
PhantomData<PerformativeDef>: Freeze,
PhantomData<SExpr>: Freeze,
*const LeafNode<String, StepDecl> is !null: Freeze,
PhantomData<Box<(String, StepDecl)>>: Freeze,
PhantomData<ShapeConstraint>: Freeze,
PhantomData<RoleDecl>: Freeze,
*const LeafNode<String, BTreeSet<String>> is !null: Freeze,
PhantomData<Box<(String, BTreeSet<String>)>>: Freeze,
PhantomData<Entry>: Freeze,
PhantomData<Act>: Freeze,
*const LeafNode<String, Resources> is !null: Freeze,
PhantomData<Box<(String, Resources)>>: Freeze,
*const LeafNode<String, String> is !null: Freeze,
PhantomData<Box<(String, String)>>: Freeze,
*const LeafNode<String, VersionManifest> is !null: Freeze,
PhantomData<Box<(String, VersionManifest)>>: Freeze,
*const LeafNode<String, SetValZST> is !null: Freeze,
PhantomData<Box<(String, SetValZST)>>: Freeze,
impl Move for Context
impl RefUnwindSafe for Context
impl Send for Contextwhere
RawVecInner: Send,
NodeRef<Owned, String, SExpr, LeafOrInternal>: Send,
BoxRaw<(String, SExpr)>: Send,
NodeRef<Owned, String, SetValZST, LeafOrInternal>: Send,
BoxRaw<(String, SetValZST)>: Send,
NodeRef<Owned, String, StepDecl, LeafOrInternal>: Send,
BoxRaw<(String, StepDecl)>: Send,
Arc<Node>: Send,
NodeRef<Owned, String, BTreeSet<String>, LeafOrInternal>: Send,
BoxRaw<(String, BTreeSet<String>)>: Send,
BoxRaw<Definition>: Send,
BoxRaw<Lift>: Send,
BoxRaw<CounterRule>: Send,
BoxRaw<Value>: Send,
BoxRaw<Message>: Send,
NodeRef<Owned, String, Resources, LeafOrInternal>: Send,
BoxRaw<(String, Resources)>: Send,
NodeRef<Owned, String, String, LeafOrInternal>: Send,
BoxRaw<(String, String)>: Send,
NodeRef<Owned, String, VersionManifest, LeafOrInternal>: Send,
BoxRaw<(String, VersionManifest)>: Send,
impl Sync for Contextwhere
RawVecInner: Sync,
NodeRef<Owned, String, SExpr, LeafOrInternal>: Sync,
BoxRaw<(String, SExpr)>: Sync,
NodeRef<Owned, String, SetValZST, LeafOrInternal>: Sync,
BoxRaw<(String, SetValZST)>: Sync,
NodeRef<Owned, String, StepDecl, LeafOrInternal>: Sync,
BoxRaw<(String, StepDecl)>: Sync,
Arc<Node>: Sync,
NodeRef<Owned, String, BTreeSet<String>, LeafOrInternal>: Sync,
BoxRaw<(String, BTreeSet<String>)>: Sync,
BoxRaw<Definition>: Sync,
BoxRaw<Lift>: Sync,
BoxRaw<CounterRule>: Sync,
BoxRaw<Value>: Sync,
BoxRaw<Message>: Sync,
NodeRef<Owned, String, Resources, LeafOrInternal>: Sync,
BoxRaw<(String, Resources)>: Sync,
NodeRef<Owned, String, String, LeafOrInternal>: Sync,
BoxRaw<(String, String)>: Sync,
NodeRef<Owned, String, VersionManifest, LeafOrInternal>: Sync,
BoxRaw<(String, VersionManifest)>: Sync,
impl Unpin for Contextwhere
*const u8 is !null: Unpin,
*const LeafNode<String, SExpr> is !null: Unpin,
Box<(String, SExpr)>: Unpin,
*const LeafNode<String, SetValZST> is !null: Unpin,
Box<(String, SetValZST)>: Unpin,
*const LeafNode<String, StepDecl> is !null: Unpin,
Box<(String, StepDecl)>: Unpin,
Arc<Node>: Unpin,
*const LeafNode<String, BTreeSet<String>> is !null: Unpin,
Box<(String, BTreeSet<String>)>: Unpin,
Box<Definition>: Unpin,
Box<Lift>: Unpin,
Box<CounterRule>: Unpin,
Box<Value>: Unpin,
Box<Message>: Unpin,
*const LeafNode<String, Resources> is !null: Unpin,
Box<(String, Resources)>: Unpin,
*const LeafNode<String, String> is !null: Unpin,
Box<(String, String)>: Unpin,
*const LeafNode<String, VersionManifest> is !null: Unpin,
Box<(String, VersionManifest)>: Unpin,
impl UnsafeUnpin for Contextwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
*const LeafNode<String, SExpr> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, SExpr)>>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
PhantomData<PerformativeDef>: UnsafeUnpin,
PhantomData<SExpr>: UnsafeUnpin,
*const LeafNode<String, StepDecl> is !null: UnsafeUnpin,
PhantomData<Box<(String, StepDecl)>>: UnsafeUnpin,
PhantomData<ShapeConstraint>: UnsafeUnpin,
PhantomData<RoleDecl>: UnsafeUnpin,
*const LeafNode<String, BTreeSet<String>> is !null: UnsafeUnpin,
PhantomData<Box<(String, BTreeSet<String>)>>: UnsafeUnpin,
PhantomData<Entry>: UnsafeUnpin,
PhantomData<Act>: UnsafeUnpin,
*const LeafNode<String, Resources> is !null: UnsafeUnpin,
PhantomData<Box<(String, Resources)>>: UnsafeUnpin,
*const LeafNode<String, String> is !null: UnsafeUnpin,
PhantomData<Box<(String, String)>>: UnsafeUnpin,
*const LeafNode<String, VersionManifest> is !null: UnsafeUnpin,
PhantomData<Box<(String, VersionManifest)>>: UnsafeUnpin,
*const LeafNode<String, SetValZST> is !null: UnsafeUnpin,
PhantomData<Box<(String, SetValZST)>>: UnsafeUnpin,
impl UnwindSafe for Contextwhere
RawVecInner: UnwindSafe,
BTreeMap<String, SExpr>: UnwindSafe,
BTreeMap<String, SetValZST>: UnwindSafe,
BTreeMap<String, StepDecl>: UnwindSafe,
Arc<Node>: UnwindSafe,
BTreeMap<String, BTreeSet<String>>: UnwindSafe,
BoxRaw<Definition>: UnwindSafe,
BoxRaw<Lift>: UnwindSafe,
BoxRaw<CounterRule>: UnwindSafe,
BoxRaw<Value>: UnwindSafe,
BoxRaw<Message>: UnwindSafe,
BTreeMap<String, Resources>: UnwindSafe,
BTreeMap<String, String>: UnwindSafe,
BTreeMap<String, VersionManifest>: UnwindSafe,
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