pub struct ServiceBrowserBuilder { /* private fields */ }Expand description
Builder for creating a browser, allowing optionally specifying a domain with chaining (maybe builder is excessive)
Implementations§
Source§impl ServiceBrowserBuilder
impl ServiceBrowserBuilder
Sourcepub fn new(regtype: &str) -> ServiceBrowserBuilder
pub fn new(regtype: &str) -> ServiceBrowserBuilder
Creates new service browser for given service type, i.e. ._http._tcp
Sourcepub fn with_domain(self, domain: &str) -> ServiceBrowserBuilder
pub fn with_domain(self, domain: &str) -> ServiceBrowserBuilder
Adds a specified domain to browser’s search
Sourcepub fn browse(self) -> Result<ServiceBrowser, BrowseError>
pub fn browse(self) -> Result<ServiceBrowser, BrowseError>
Starts the browser
Auto Trait Implementations§
impl Freeze for ServiceBrowserBuilder
impl RefUnwindSafe for ServiceBrowserBuilder
impl Send for ServiceBrowserBuilder
impl Sync for ServiceBrowserBuilder
impl Unpin for ServiceBrowserBuilder
impl UnwindSafe for ServiceBrowserBuilder
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