Struct stun_codec::rfc5389::errors::TryAlternate[][src]

pub struct TryAlternate;

300: "Try Alternate".

The client should contact an alternate server for this request. This error response MUST only be sent if the request included a USERNAME attribute and a valid MESSAGE- INTEGRITY attribute; otherwise, it MUST NOT be sent and error code 400 (Bad Request) is suggested. This error response MUST be protected with the MESSAGE-INTEGRITY attribute, and receivers MUST validate the MESSAGE-INTEGRITY of this response before redirecting themselves to an alternate server.

Note: Failure to generate and validate message integrity for a 300 response allows an on-path attacker to falsify a 300 response thus causing subsequent STUN messages to be sent to a victim.

RFC 5389 -- 15.6 ERROR-CODE

Implementations

impl TryAlternate[src]

pub const CODEPOINT: u16[src]

The codepoint of the error.

Trait Implementations

impl Clone for TryAlternate[src]

impl Copy for TryAlternate[src]

impl Debug for TryAlternate[src]

impl Eq for TryAlternate[src]

impl From<TryAlternate> for ErrorCode[src]

impl Hash for TryAlternate[src]

impl PartialEq<TryAlternate> for TryAlternate[src]

impl StructuralEq for TryAlternate[src]

impl StructuralPartialEq for TryAlternate[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.