Struct netidx_netproto::resolver::Referral
source · pub struct Referral {
pub path: Path,
pub ttl: Option<u16>,
pub addrs: Pooled<Vec<(SocketAddr, Auth)>>,
}
Fields§
§path: Path
§ttl: Option<u16>
§addrs: Pooled<Vec<(SocketAddr, Auth)>>
Trait Implementations§
source§impl Pack for Referral
impl Pack for Referral
fn encoded_len(&self) -> usize
fn encode(&self, buf: &mut impl BufMut) -> Result<(), PackError>
fn decode(buf: &mut impl Buf) -> Result<Self, PackError>
fn const_encoded_len() -> Option<usize>
fn decode_into(&mut self, buf: &mut impl Buf) -> Result<(), PackError>where
Self: Sized,
source§impl PartialEq for Referral
impl PartialEq for Referral
impl Eq for Referral
Auto Trait Implementations§
impl Freeze for Referral
impl RefUnwindSafe for Referral
impl Send for Referral
impl Sync for Referral
impl Unpin for Referral
impl UnwindSafe for Referral
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.