pub struct HttpsTransportOwnershipProof { /* private fields */ }Expand description
Server-side proof object for the HTTPS transport. Holds one handle: a clone of
HttpsTransportCertRefresher::base_cert, so every call snapshots the freshest
loaded chain without coordinating with the cert refresher’s own loop.
One instance per server, constructed in FullHttpsTransportServer::new() and
shared via Arc from get_transport_ownership_proof() — so the cache survives
across announce ticks.
Implementations§
Trait Implementations§
Source§impl TransportOwnershipProof for HttpsTransportOwnershipProof
impl TransportOwnershipProof for HttpsTransportOwnershipProof
Source§fn make_ownership_proof_payload(&self) -> Option<Bytes>
fn make_ownership_proof_payload(&self) -> Option<Bytes>
Announce-out: produce the proof bytes for our own announce. Returns
None if we
can’t currently prove ownership — e.g. an HTTPS server that hasn’t completed its
first ACME issuance yet. Callers (maintain_kademlia) treat None as “skip this
announce tick, try again next interval”. Read moreSource§fn prove(&self, peer: &Peer, proof_payload: &[u8], now: TimeMillis) -> bool
fn prove(&self, peer: &Peer, proof_payload: &[u8], now: TimeMillis) -> bool
Announce-in: validate
proof_payload (bytes pulled out of an inbound AnnounceV2)
against peer. Returns false if the bytes can’t be deserialised by this impl
(wrong transport / corrupt blob) or if the proof fails verification (expired cert,
wrong-IP SAN, …). Read moreAuto Trait Implementations§
impl !Freeze for HttpsTransportOwnershipProof
impl !RefUnwindSafe for HttpsTransportOwnershipProof
impl Send for HttpsTransportOwnershipProof
impl Sync for HttpsTransportOwnershipProof
impl Unpin for HttpsTransportOwnershipProof
impl UnsafeUnpin for HttpsTransportOwnershipProof
impl !UnwindSafe for HttpsTransportOwnershipProof
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<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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