Struct async_dnssd::Registration
source · pub struct Registration(/* private fields */);
Expand description
Implementations§
source§impl 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 Freeze for Registration
impl !RefUnwindSafe for Registration
impl Send for Registration
impl !Sync for Registration
impl Unpin for Registration
impl !UnwindSafe for Registration
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