pub struct Flags(/* private fields */);
Implementations§
Source§impl Flags
impl Flags
pub fn size(&self) -> usize
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§
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