Enum sawp_dns::enums::RecordClass
source · [−]#[repr(u16)]
pub enum RecordClass {
IN,
CH,
HS,
NONE,
ANY,
UNKNOWN,
}
Variants
IN
CH
HS
NONE
ANY
UNKNOWN
Implementations
sourceimpl RecordClass
impl RecordClass
Trait Implementations
sourceimpl Clone for RecordClass
impl Clone for RecordClass
sourcefn clone(&self) -> RecordClass
fn clone(&self) -> RecordClass
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for RecordClass
impl Debug for RecordClass
sourceimpl PartialEq<RecordClass> for RecordClass
impl PartialEq<RecordClass> for RecordClass
sourceimpl TryFrom<u16> for RecordClass
impl TryFrom<u16> for RecordClass
type Error = TryFromPrimitiveError<RecordClass>
type Error = TryFromPrimitiveError<RecordClass>
The type returned in the event of a conversion error.
sourcefn try_from(number: u16) -> Result<Self, TryFromPrimitiveError<Self>>
fn try_from(number: u16) -> Result<Self, TryFromPrimitiveError<Self>>
Performs the conversion.
sourceimpl TryFromPrimitive for RecordClass
impl TryFromPrimitive for RecordClass
type Primitive = u16
const NAME: &'static str = "RecordClass"
fn try_from_primitive(
number: Self::Primitive
) -> Result<Self, TryFromPrimitiveError<Self>>
impl Copy for RecordClass
impl StructuralPartialEq for RecordClass
Auto Trait Implementations
impl RefUnwindSafe for RecordClass
impl Send for RecordClass
impl Sync for RecordClass
impl Unpin for RecordClass
impl UnwindSafe for RecordClass
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more