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