pub trait StunAttributeType {
// Required methods
fn attribute_type(&self) -> AttributeType;
fn get_type() -> AttributeType
where Self: Sized;
}
Expand description
Trait implemented by all StunAttribute
Required Methods§
sourcefn attribute_type(&self) -> AttributeType
fn attribute_type(&self) -> AttributeType
Returns the STUN attribute type of this instance.
sourcefn get_type() -> AttributeTypewhere
Self: Sized,
fn get_type() -> AttributeTypewhere
Self: Sized,
Returns the STUN attribute type.