pub struct DoHHandler;Expand description
DoH处理器
Trait Implementations§
Source§impl Debug for DoHHandler
impl Debug for DoHHandler
Source§impl Default for DoHHandler
impl Default for DoHHandler
Source§fn default() -> DoHHandler
fn default() -> DoHHandler
Returns the “default value” for a type. Read more
Source§impl UpstreamHandler for DoHHandler
impl UpstreamHandler for DoHHandler
Source§fn handler_type(&self) -> UpstreamType
fn handler_type(&self) -> UpstreamType
处理器类型
Source§fn create_transport<'life0, 'life1, 'async_trait>(
&'life0 self,
spec: &'life1 UpstreamSpec,
) -> Pin<Box<dyn Future<Output = Result<Box<dyn Transport>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn create_transport<'life0, 'life1, 'async_trait>(
&'life0 self,
spec: &'life1 UpstreamSpec,
) -> Pin<Box<dyn Future<Output = Result<Box<dyn Transport>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
从规格创建传输实例
Source§fn validate_spec(&self, spec: &UpstreamSpec) -> Result<()>
fn validate_spec(&self, spec: &UpstreamSpec) -> Result<()>
验证规格是否有效
Source§fn default_port(&self) -> u16
fn default_port(&self) -> u16
获取默认端口
Auto Trait Implementations§
impl Freeze for DoHHandler
impl RefUnwindSafe for DoHHandler
impl Send for DoHHandler
impl Sync for DoHHandler
impl Unpin for DoHHandler
impl UnsafeUnpin for DoHHandler
impl UnwindSafe for DoHHandler
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