pub struct RegistrationHandle(/* private fields */);
Expand description
Registration handle
Can be used to add additional records to the registration.
Also keeps the registration alive (same as Registration
).
Implementations§
Source§impl RegistrationHandle
impl RegistrationHandle
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.
Trait Implementations§
Source§impl Clone for RegistrationHandle
impl Clone for RegistrationHandle
Source§fn clone(&self) -> RegistrationHandle
fn clone(&self) -> RegistrationHandle
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for RegistrationHandle
impl !RefUnwindSafe for RegistrationHandle
impl Send for RegistrationHandle
impl !Sync for RegistrationHandle
impl Unpin for RegistrationHandle
impl !UnwindSafe for RegistrationHandle
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