pub struct GatewaySelection { /* private fields */ }Expand description
Successful actual transport selection.
Implementations§
Source§impl GatewaySelection
impl GatewaySelection
Sourcepub const fn policy_generation(&self) -> u64
pub const fn policy_generation(&self) -> u64
Policy generation of the completed plan.
Sourcepub const fn transport(&self) -> ResolutionTransport
pub const fn transport(&self) -> ResolutionTransport
Actual selected DNS transport.
Sourcepub const fn identities(&self) -> &GatewayIdentities
pub const fn identities(&self) -> &GatewayIdentities
Actual intermediary identities.
Sourcepub const fn direct_relay_fallback(&self) -> bool
pub const fn direct_relay_fallback(&self) -> bool
Whether an attempted ODoH path downgraded to direct P2P relay.
Sourcepub fn into_parts(
self,
) -> (u64, ResolutionTransport, Vec<u8>, GatewayIdentities, bool)
pub fn into_parts( self, ) -> (u64, ResolutionTransport, Vec<u8>, GatewayIdentities, bool)
Consume the one-shot selection into its admitted fields.
Trait Implementations§
Source§impl Debug for GatewaySelection
impl Debug for GatewaySelection
impl Eq for GatewaySelection
Source§impl PartialEq for GatewaySelection
impl PartialEq for GatewaySelection
impl StructuralPartialEq for GatewaySelection
Auto Trait Implementations§
impl Freeze for GatewaySelection
impl RefUnwindSafe for GatewaySelection
impl Send for GatewaySelection
impl Sync for GatewaySelection
impl Unpin for GatewaySelection
impl UnsafeUnpin for GatewaySelection
impl UnwindSafe for GatewaySelection
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<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.