Struct safe_network::messaging::AuthorityProof
source · [−]pub struct AuthorityProof<T>(_);
Expand description
Verified authority.
Values of this type constitute a proof that the signature is valid for a particular payload. This is made possible by keeping the field private, and performing verification in all possible constructors of the type.
Validation is defined by the VerifyAuthority
impl for T
.
Implementations
Verify the authority of inner
.
This is the only way to construct an instance of [Authority
] from a T
. Since it’s
implemented to call VerifyAuthority::verify_authority
an instance of AuthorityProof<T>
is
guaranteed to be valid with respect to that trait’s impl.
Drop the proof of validity and return the wrapped value.
Trait Implementations
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
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl<T> RefUnwindSafe for AuthorityProof<T> where
T: RefUnwindSafe,
impl<T> Send for AuthorityProof<T> where
T: Send,
impl<T> Sync for AuthorityProof<T> where
T: Sync,
impl<T> Unpin for AuthorityProof<T> where
T: Unpin,
impl<T> UnwindSafe for AuthorityProof<T> where
T: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more