Struct stun_codec::TransactionId[][src]

pub struct TransactionId(_);

Transaction ID.

STUN is a client-server protocol. It supports two types of transactions. One is a request/response transaction in which a client sends a request to a server, and the server returns a response. The second is an indication transaction in which either agent -- client or server -- sends an indication that generates no response. Both types of transactions include a transaction ID, which is a randomly selected 96-bit number. For request/response transactions, this transaction ID allows the client to associate the response with the request that generated it; for indications, the transaction ID serves as a debugging aid.

RFC 5389 -- 3. Overview of Operation

Implementations

impl TransactionId[src]

pub fn new(id: [u8; 12]) -> Self[src]

Makes a new TransactionId instance.

pub fn as_bytes(&self) -> &[u8; 12][src]

Returns a reference to the bytes that represents the identifier.

Trait Implementations

impl AsRef<[u8]> for TransactionId[src]

impl Clone for TransactionId[src]

impl Copy for TransactionId[src]

impl Debug for TransactionId[src]

impl Eq for TransactionId[src]

impl Hash for TransactionId[src]

impl Ord for TransactionId[src]

impl PartialEq<TransactionId> for TransactionId[src]

impl PartialOrd<TransactionId> for TransactionId[src]

impl StructuralEq for TransactionId[src]

impl StructuralPartialEq for TransactionId[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.