pub struct EvenPort(/* private fields */);
Expand description
This attribute allows the client to request that the port in the relayed transport address be even and (optionally) that the server reserve the next-higher port number.
§Examples
let attr = EvenPort::new(true);
assert!(attr.reserve());
Implementations§
Trait Implementations§
source§impl From<EvenPort> for StunAttribute
impl From<EvenPort> for StunAttribute
source§impl StunAttributeType for EvenPort
impl StunAttributeType for EvenPort
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 EvenPort
impl StructuralPartialEq for EvenPort
Auto Trait Implementations§
impl Freeze for EvenPort
impl RefUnwindSafe for EvenPort
impl Send for EvenPort
impl Sync for EvenPort
impl Unpin for EvenPort
impl UnwindSafe for EvenPort
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
)