Struct async_dnssd::BrowseData
source · pub struct BrowseData<'a> {
pub interface: Interface,
pub domain: Option<&'a str>,
/* private fields */
}
Expand description
Optional data when browsing for a service; either use its default value or customize it like:
BrowseData {
domain: Some("example.com"),
..Default::default()
};
Fields§
§interface: Interface
interface to query records on
domain: Option<&'a str>
domain on which to search for the service
Trait Implementations§
source§impl<'a> Clone for BrowseData<'a>
impl<'a> Clone for BrowseData<'a>
source§fn clone(&self) -> BrowseData<'a>
fn clone(&self) -> BrowseData<'a>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<'a> Debug for BrowseData<'a>
impl<'a> Debug for BrowseData<'a>
source§impl<'a> Default for BrowseData<'a>
impl<'a> Default for BrowseData<'a>
source§impl<'a> Hash for BrowseData<'a>
impl<'a> Hash for BrowseData<'a>
source§impl<'a> Ord for BrowseData<'a>
impl<'a> Ord for BrowseData<'a>
source§fn cmp(&self, other: &BrowseData<'a>) -> Ordering
fn cmp(&self, other: &BrowseData<'a>) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl<'a> PartialEq for BrowseData<'a>
impl<'a> PartialEq for BrowseData<'a>
source§impl<'a> PartialOrd for BrowseData<'a>
impl<'a> PartialOrd for BrowseData<'a>
impl<'a> Copy for BrowseData<'a>
impl<'a> Eq for BrowseData<'a>
impl<'a> StructuralPartialEq for BrowseData<'a>
Auto Trait Implementations§
impl<'a> Freeze for BrowseData<'a>
impl<'a> RefUnwindSafe for BrowseData<'a>
impl<'a> Send for BrowseData<'a>
impl<'a> Sync for BrowseData<'a>
impl<'a> Unpin for BrowseData<'a>
impl<'a> UnwindSafe for BrowseData<'a>
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)