pub struct Padding(/* private fields */);
Expand description
The padding attribute allows for the entire message to be padded to force the STUN message to be divided into IP fragments. This attribute consists entirely of a free-form string, the value of which does not matter. Padding can be used in either Binding Requests or Binding Responses.
§Examples
let attr = Padding::new("ABCDEFGHIJK...")?;
assert_eq!(attr, "ABCDEFGHIJK...");
Implementations§
Trait Implementations§
source§impl From<Padding> for StunAttribute
impl From<Padding> for StunAttribute
source§impl Ord for Padding
impl Ord for Padding
source§impl PartialOrd for Padding
impl PartialOrd for Padding
source§impl StunAttributeType for Padding
impl StunAttributeType for Padding
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 Eq for Padding
impl StructuralPartialEq for Padding
Auto Trait Implementations§
impl Freeze for Padding
impl RefUnwindSafe for Padding
impl Send for Padding
impl Sync for Padding
impl Unpin for Padding
impl UnwindSafe for Padding
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
)