pub struct ValidateCtx<'a> {
pub receiver_peer_id: &'a str,
pub sender_peer_id: &'a str,
pub network_id: &'a str,
pub now_secs: u64,
}Expand description
The receiver-side context an inbound entry is validated against (SPEC §3.3).
Fields§
§receiver_peer_id: &'a strThe receiver’s own peer_id — an entry advertising it is skipped (SPEC §5.4).
sender_peer_id: &'a strThe link partner’s (sender’s) peer_id — an entry advertising it is skipped (SPEC §5.4).
network_id: &'a strThe link’s network — an entry on a different network_id is skipped.
now_secs: u64The receiver’s current time in Unix seconds — for the freshness check.
Trait Implementations§
Source§impl<'a> Clone for ValidateCtx<'a>
impl<'a> Clone for ValidateCtx<'a>
Source§fn clone(&self) -> ValidateCtx<'a>
fn clone(&self) -> ValidateCtx<'a>
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<'a> Copy for ValidateCtx<'a>
Auto Trait Implementations§
impl<'a> Freeze for ValidateCtx<'a>
impl<'a> RefUnwindSafe for ValidateCtx<'a>
impl<'a> Send for ValidateCtx<'a>
impl<'a> Sync for ValidateCtx<'a>
impl<'a> Unpin for ValidateCtx<'a>
impl<'a> UnsafeUnpin for ValidateCtx<'a>
impl<'a> UnwindSafe for ValidateCtx<'a>
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