Struct hyper_rustls::FixedServerNameResolver
source · pub struct FixedServerNameResolver { /* private fields */ }
Expand description
A server name resolver which always returns the same fixed name.
Implementations§
source§impl FixedServerNameResolver
impl FixedServerNameResolver
sourcepub fn new(name: ServerName<'static>) -> Self
pub fn new(name: ServerName<'static>) -> Self
Creates a new resolver returning the specified name.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FixedServerNameResolver
impl RefUnwindSafe for FixedServerNameResolver
impl Send for FixedServerNameResolver
impl Sync for FixedServerNameResolver
impl Unpin for FixedServerNameResolver
impl UnwindSafe for FixedServerNameResolver
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