pub struct Connection(/* private fields */);Expand description
Connection to register records with
Implementations§
Source§impl Connection
impl Connection
Sourcepub fn register_record_extended(
&self,
fullname: &str,
rr_type: Type,
rdata: &[u8],
data: RegisterRecordData,
) -> Result<RegisterRecord>
pub fn register_record_extended( &self, fullname: &str, rr_type: Type, rdata: &[u8], data: RegisterRecordData, ) -> Result<RegisterRecord>
Register record on interface with given name, type, class, rdata and ttl
Sourcepub fn register_record(
&self,
fullname: &str,
rr_type: Type,
rdata: &[u8],
) -> Result<RegisterRecord>
pub fn register_record( &self, fullname: &str, rr_type: Type, rdata: &[u8], ) -> Result<RegisterRecord>
Register record on interface with given name, type, class, rdata and ttl
Uses register_record_extended with default RegisterRecordData.
Auto Trait Implementations§
impl Freeze for Connection
impl !RefUnwindSafe for Connection
impl Send for Connection
impl !Sync for Connection
impl Unpin for Connection
impl !UnwindSafe for Connection
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