pub struct DoH {
pub globals: Arc<Globals>,
pub remote_addr: Option<SocketAddr>,
}Fields§
§globals: Arc<Globals>§remote_addr: Option<SocketAddr>Implementations§
Source§impl DoH
impl DoH
pub async fn start_with_tls( self, listener: TcpListener, server: Http<LocalExecutor>, ) -> Result<(), DoHError>
Trait Implementations§
Source§impl Service<Request<Body>> for DoH
impl Service<Request<Body>> for DoH
Source§type Future = Pin<Box<dyn Future<Output = Result<<DoH as Service<Request<Body>>>::Response, <DoH as Service<Request<Body>>>::Error>> + Send>>
type Future = Pin<Box<dyn Future<Output = Result<<DoH as Service<Request<Body>>>::Response, <DoH as Service<Request<Body>>>::Error>> + Send>>
The future response value.
Auto Trait Implementations§
impl Freeze for DoH
impl RefUnwindSafe for DoH
impl Send for DoH
impl Sync for DoH
impl Unpin for DoH
impl UnwindSafe for DoH
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