Struct simple_dns::rdata::LOC
source · pub struct LOC {
pub version: u8,
pub size: u8,
pub horizontal_precision: u8,
pub vertical_precision: u8,
pub latitude: i32,
pub longitude: i32,
pub altitude: i32,
}
Expand description
A Means for Expressing Location Information in the Domain Name System RFC 1876
Fields§
§version: u8
Version number of the representation. This must be zero.
size: u8
The diameter of a sphere enclosing the described entity, in centimeters, expressed as a pair of four-bit unsigned integers
horizontal_precision: u8
The horizontal precision of the data, in centimeters, expressed using the same representation as SIZE
vertical_precision: u8
The vertical precision of the data, in centimeters, expressed using the sane representation as for SIZE
latitude: i32
The latitude of the center of the sphere described by the SIZE field
longitude: i32
The longitude of the center of the sphere described by the SIZE field
altitude: i32
The altitude of the center of the sphere described by the SIZE field
Implementations§
source§impl LOC
impl LOC
sourcepub fn into_owned(self) -> Self
pub fn into_owned(self) -> Self
Transforms the inner data into its owned type
Trait Implementations§
impl Eq for LOC
impl StructuralPartialEq for LOC
Auto Trait Implementations§
impl Freeze for LOC
impl RefUnwindSafe for LOC
impl Send for LOC
impl Sync for LOC
impl Unpin for LOC
impl UnwindSafe for LOC
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)