Struct mtop_client::dns::Flags
source · pub struct Flags(/* private fields */);Implementations§
source§impl Flags
impl Flags
pub fn is_query(&self) -> bool
pub fn set_query(self) -> Self
pub fn is_response(&self) -> bool
pub fn set_response(self) -> Self
pub fn get_op_code(&self) -> Operation
pub fn set_op_code(self, op: Operation) -> Self
pub fn is_truncated(&self) -> bool
pub fn set_truncated(self) -> Self
pub fn is_recursion_desired(&self) -> bool
pub fn set_recursion_desired(self) -> Self
pub fn is_recursion_available(&self) -> bool
pub fn set_recursion_available(self) -> Self
pub fn get_response_code(&self) -> ResponseCode
pub fn set_response_code(self, code: ResponseCode) -> Self
pub fn as_u16(&self) -> u16
Trait Implementations§
source§impl PartialEq for Flags
impl PartialEq for Flags
impl Copy for Flags
impl Eq for Flags
impl StructuralPartialEq for Flags
Auto Trait Implementations§
impl Freeze for Flags
impl RefUnwindSafe for Flags
impl Send for Flags
impl Sync for Flags
impl Unpin for Flags
impl UnwindSafe for Flags
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)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)