pub struct ObliviousDoHMessagePlaintext { /* private fields */ }Expand description
Structure holding unencrypted dns message and padding.
Implementations§
Source§impl ObliviousDoHMessagePlaintext
impl ObliviousDoHMessagePlaintext
Sourcepub fn new<M: AsRef<[u8]>>(msg: M, padding_len: usize) -> Self
pub fn new<M: AsRef<[u8]>>(msg: M, padding_len: usize) -> Self
Create a new ObliviousDoHMessagePlaintext from DNS message
bytes and an optional padding.
Sourcepub fn padding_len(&self) -> usize
pub fn padding_len(&self) -> usize
Return the length of padding.
Trait Implementations§
Source§impl Clone for ObliviousDoHMessagePlaintext
impl Clone for ObliviousDoHMessagePlaintext
Source§fn clone(&self) -> ObliviousDoHMessagePlaintext
fn clone(&self) -> ObliviousDoHMessagePlaintext
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 ObliviousDoHMessagePlaintext
impl Debug for ObliviousDoHMessagePlaintext
Source§impl PartialEq for ObliviousDoHMessagePlaintext
impl PartialEq for ObliviousDoHMessagePlaintext
Source§fn eq(&self, other: &ObliviousDoHMessagePlaintext) -> bool
fn eq(&self, other: &ObliviousDoHMessagePlaintext) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for &ObliviousDoHMessagePlaintext
impl Serialize for &ObliviousDoHMessagePlaintext
impl Eq for ObliviousDoHMessagePlaintext
impl StructuralPartialEq for ObliviousDoHMessagePlaintext
Auto Trait Implementations§
impl !Freeze for ObliviousDoHMessagePlaintext
impl RefUnwindSafe for ObliviousDoHMessagePlaintext
impl Send for ObliviousDoHMessagePlaintext
impl Sync for ObliviousDoHMessagePlaintext
impl Unpin for ObliviousDoHMessagePlaintext
impl UnwindSafe for ObliviousDoHMessagePlaintext
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