Struct async_dnssd::Registration
source · [−]pub struct Registration(_);
Expand description
Implementations
sourceimpl Registration
impl Registration
sourcepub fn add_record(&self, rr_type: Type, rdata: &[u8], ttl: u32) -> Result<Record>
pub fn add_record(&self, rr_type: Type, rdata: &[u8], ttl: u32) -> Result<Record>
Add a record to a registered service
sourcepub fn get_default_txt_record(&self) -> Record
pub fn get_default_txt_record(&self) -> Record
Get Record
handle for default TXT record
associated with the service registration (e.g. to update it).
Record::keep
doesn’t do
anything useful on that handle.
Auto Trait Implementations
impl !RefUnwindSafe for Registration
impl Send for Registration
impl !Sync for Registration
impl Unpin for Registration
impl !UnwindSafe for Registration
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more