pub enum PublicProof {
Import(Box<ImportPublicProofBundleV1>),
Native(Box<NativePublicProofBundleV1>),
}Expand description
Explicit transport dispatch; an import failure never becomes native history.
Variants§
Import(Box<ImportPublicProofBundleV1>)
Native(Box<NativePublicProofBundleV1>)
Implementations§
Source§impl PublicProof
impl PublicProof
pub fn witness_set(&self) -> Option<&SignedHostedWitnessSetV1>
pub fn replace_receiver_metadata( &mut self, refreshed: PublicProof, ) -> Result<(), Reject>
pub fn encode_to_vec(&self) -> Vec<u8> ⓘ
Source§impl PublicProof
impl PublicProof
pub fn foreign_dependencies(&self) -> &[ForeignDependencyV1]
pub fn foreign_original( &self, reference: &ForeignDependencyV1, ) -> Result<&SignedRecord, Reject>
pub fn prefix_original( &self, reference: &ForeignDependencyV1, ) -> Result<&SignedRecord, Reject>
Sourcepub fn prefix(
&self,
reference: &ForeignDependencyV1,
) -> Result<PublicProof, Reject>
pub fn prefix( &self, reference: &ForeignDependencyV1, ) -> Result<PublicProof, Reject>
Select the requested own-origin prefix before traversing its foreign obligations. The receiver still verifies the exact installed endpoint and derived cutoff inside its transaction.
Trait Implementations§
Source§impl Clone for PublicProof
impl Clone for PublicProof
Source§fn clone(&self) -> PublicProof
fn clone(&self) -> PublicProof
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 PublicProof
impl Debug for PublicProof
Source§impl From<ImportPublicProofBundleV1> for PublicProof
impl From<ImportPublicProofBundleV1> for PublicProof
Source§fn from(b: ImportPublicProofBundleV1) -> PublicProof
fn from(b: ImportPublicProofBundleV1) -> PublicProof
Converts to this type from the input type.
Source§impl From<NativePublicProofBundleV1> for PublicProof
impl From<NativePublicProofBundleV1> for PublicProof
Source§fn from(b: NativePublicProofBundleV1) -> PublicProof
fn from(b: NativePublicProofBundleV1) -> PublicProof
Converts to this type from the input type.
Source§impl PartialEq for PublicProof
impl PartialEq for PublicProof
Source§impl PublicEvidence for PublicProof
impl PublicEvidence for PublicProof
fn validate(&self) -> Result<(), Reject>
fn public_history(&self) -> PublicHistory<'_>
fn policies(&self) -> &[SignedSpoolPolicyRecord]
fn statements(&self) -> &[SignedHostedWitnessStatementV1]
fn binding_selectors(&self) -> Vec<(Vec<u8>, u64)>
fn imported(&self) -> Option<&ImportPublicProofBundleV1>
fn native(&self) -> Option<&NativePublicProofBundleV1>
fn delegations(&self) -> &[SignedImportJobDelegationV1]
fn member_permission(&self) -> Option<&SignedImportMemberPermissionV1>
impl StructuralPartialEq for PublicProof
Auto Trait Implementations§
impl Freeze for PublicProof
impl RefUnwindSafe for PublicProof
impl Send for PublicProof
impl Sync for PublicProof
impl Unpin for PublicProof
impl UnsafeUnpin for PublicProof
impl UnwindSafe for PublicProof
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more