pub struct DontFragment {}
Expand description
This attribute is used by the client to request that the server set
the DF
(Don’t Fragment) bit in the IP header when relaying the
application data onward to the peer and for determining the server
capability in Allocate requests
§Examples
let attr = DontFragment::default();
assert_eq!(attr.attribute_type(), AttributeType::from(0x001A));
Trait Implementations§
source§impl Clone for DontFragment
impl Clone for DontFragment
source§fn clone(&self) -> DontFragment
fn clone(&self) -> DontFragment
Returns a copy 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 DontFragment
impl Debug for DontFragment
source§impl Default for DontFragment
impl Default for DontFragment
source§fn default() -> DontFragment
fn default() -> DontFragment
Returns the “default value” for a type. Read more
source§impl From<DontFragment> for StunAttribute
impl From<DontFragment> for StunAttribute
source§fn from(value: DontFragment) -> Self
fn from(value: DontFragment) -> Self
Converts to this type from the input type.
source§impl PartialEq for DontFragment
impl PartialEq for DontFragment
source§impl StunAttributeType for DontFragment
impl StunAttributeType for DontFragment
source§fn get_type() -> AttributeTypewhere
Self: Sized,
fn get_type() -> AttributeTypewhere
Self: Sized,
Returns the STUN attribute type.
source§fn attribute_type(&self) -> AttributeType
fn attribute_type(&self) -> AttributeType
Returns the STUN attribute type of this instance.
impl Copy for DontFragment
impl Eq for DontFragment
impl StructuralPartialEq for DontFragment
Auto Trait Implementations§
impl Freeze for DontFragment
impl RefUnwindSafe for DontFragment
impl Send for DontFragment
impl Sync for DontFragment
impl Unpin for DontFragment
impl UnwindSafe for DontFragment
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§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
)