pub struct Unknown { /* private fields */ }
Expand description

Unknown attribute. This attribute is added to a decoded message when there is not a known handler to decode an attribute. To minimize impact on memory, the data associated to any unknown attribute is discarded unless the experimental flag is enabled and the decoder context had been configured to keep the data associated to unknown attributes.

Implementations

Returns the STUN attribute type associated to this unknown attribute.

Returns the raw value associated to this unknown attribute. By default, no data will be returned to save the amount of memory required to process unknown attributes. If access to such data is required, it must be specified by calling the with_unknown_data on the DecoderContextBuilder. This option is only enabled through the experimental flag.

Trait Implementations

Formats the value using the given formatter. Read more
Converts to this type from the input type.
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.