pub struct VerifiedOdohTarget { /* private fields */ }Expand description
A signed, current ODoH target record reduced to immutable requester fields.
Implementations§
Source§impl VerifiedOdohTarget
impl VerifiedOdohTarget
Sourcepub fn decode(
record: &[u8],
expected_locator: &DirectTargetLocator,
expected_network_magic: u32,
now: u64,
allow_private: bool,
configuration_index: usize,
) -> Result<VerifiedOdohTarget, P2pTransportError>
pub fn decode( record: &[u8], expected_locator: &DirectTargetLocator, expected_network_magic: u32, now: u64, allow_private: bool, configuration_index: usize, ) -> Result<VerifiedOdohTarget, P2pTransportError>
Verify a target-signed record and select one supported configuration.
Sourcepub const fn locator(&self) -> &DirectTargetLocator
pub const fn locator(&self) -> &DirectTargetLocator
Authenticated target locator.
Sourcepub const fn record_id(&self) -> [u8; 32]
pub const fn record_id(&self) -> [u8; 32]
Target record identifier carried in the proxy request.
Sourcepub const fn expires_at(&self) -> u64
pub const fn expires_at(&self) -> u64
Target configuration expiration time.
Trait Implementations§
Source§impl Clone for VerifiedOdohTarget
impl Clone for VerifiedOdohTarget
Source§fn clone(&self) -> VerifiedOdohTarget
fn clone(&self) -> VerifiedOdohTarget
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 VerifiedOdohTarget
impl Debug for VerifiedOdohTarget
impl Eq for VerifiedOdohTarget
Source§impl PartialEq for VerifiedOdohTarget
impl PartialEq for VerifiedOdohTarget
impl StructuralPartialEq for VerifiedOdohTarget
Auto Trait Implementations§
impl Freeze for VerifiedOdohTarget
impl RefUnwindSafe for VerifiedOdohTarget
impl Send for VerifiedOdohTarget
impl Sync for VerifiedOdohTarget
impl Unpin for VerifiedOdohTarget
impl UnsafeUnpin for VerifiedOdohTarget
impl UnwindSafe for VerifiedOdohTarget
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.