pub struct MatrixDnsResolver { /* private fields */ }Expand description
A custom DNS resolver for reqwest that handles Matrix server name resolution.
This resolver integrates with the MatrixResolver cache and logic to ensure that
HTTP requests made by reqwest are routed to the correct IP address and port
as discovered by the Matrix server discovery process.
It exists to ensure that the correct SNI is used. The resolver base URL is the
domain expected for SNI, and the MatrixDnsResolver resolves it to the correct destination.
Trait Implementations§
Source§impl Clone for MatrixDnsResolver
impl Clone for MatrixDnsResolver
Source§fn clone(&self) -> MatrixDnsResolver
fn clone(&self) -> MatrixDnsResolver
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for MatrixDnsResolver
impl !RefUnwindSafe for MatrixDnsResolver
impl Send for MatrixDnsResolver
impl Sync for MatrixDnsResolver
impl Unpin for MatrixDnsResolver
impl UnsafeUnpin for MatrixDnsResolver
impl !UnwindSafe for MatrixDnsResolver
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