pub struct Discovery { /* private fields */ }Implementations§
Source§impl Discovery
impl Discovery
pub fn new(addr: Vec<String>) -> Self
pub fn with_sender(self, sender: Option<Arc<NotificationSender>>) -> Self
pub fn with_tls(self, tls: bool) -> Self
pub fn with_ipv4_only(self, ipv4_only: bool) -> Self
pub fn with_dns_server(self, dns_server: String) -> Self
pub fn with_domain(self, domain: String) -> Self
pub fn with_search(self, search: String) -> Self
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Discovery
impl !RefUnwindSafe for Discovery
impl Send for Discovery
impl Sync for Discovery
impl Unpin for Discovery
impl UnsafeUnpin for Discovery
impl !UnwindSafe for Discovery
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