#[repr(C)]pub struct otDnsRecordInfo {
pub mNameBuffer: *mut c_char,
pub mNameBufferSize: u16,
pub mRecordType: u16,
pub mRecordLength: u16,
pub mTtl: u32,
pub mDataBuffer: *mut u8,
pub mDataBufferSize: u16,
pub mSection: otDnsRecordSection,
}
Expand description
Represents info for a record in an otDnsRecordResponse
.
This struct is used as input to otDnsRecordResponseGetRecordInfo()
.
Fields§
§mNameBuffer: *mut c_char
< Buffer to output the name (MUST NOT be NULL).
mNameBufferSize: u16
< Size of mNameBuffer
.
mRecordType: u16
< The record type.
mRecordLength: u16
< The record data length (in bytes).
mTtl: u32
< Record TTL (in seconds).
mDataBuffer: *mut u8
< Buffer to output the data (Can be NULL if data not needed).
mDataBufferSize: u16
< On input, size of mDataBuffer
. On output number of bytes written.
mSection: otDnsRecordSection
< Indicates the section of the record.
Trait Implementations§
Source§impl Clone for otDnsRecordInfo
impl Clone for otDnsRecordInfo
Source§fn clone(&self) -> otDnsRecordInfo
fn clone(&self) -> otDnsRecordInfo
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 moreSource§impl Debug for otDnsRecordInfo
impl Debug for otDnsRecordInfo
Source§impl Default for otDnsRecordInfo
impl Default for otDnsRecordInfo
impl Copy for otDnsRecordInfo
Auto Trait Implementations§
impl Freeze for otDnsRecordInfo
impl RefUnwindSafe for otDnsRecordInfo
impl !Send for otDnsRecordInfo
impl !Sync for otDnsRecordInfo
impl Unpin for otDnsRecordInfo
impl UnwindSafe for otDnsRecordInfo
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