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

Methods

impl TransactionId
[src]

Makes a new TransactionId instance.

Returns a reference to the bytes that represents the identifier.

Trait Implementations

impl Clone for TransactionId
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for TransactionId
[src]

impl PartialEq for TransactionId
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for TransactionId
[src]

impl Hash for TransactionId
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl PartialOrd for TransactionId
[src]

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl Ord for TransactionId
[src]

This method returns an Ordering between self and other. Read more

Compares and returns the maximum of two values. Read more

Compares and returns the minimum of two values. Read more

impl Debug for TransactionId
[src]

Formats the value using the given formatter. Read more

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

Performs the conversion.

Auto Trait Implementations