Trait Property

Source
pub trait Property<'a> {
    type Error;
    type Inner;

    // Required methods
    fn kind() -> AttrKind;
    fn into(value: Self::Inner, buf: &mut BytesMut, t: &'a [u8]);
    fn try_from(buf: &'a [u8], t: &'a [u8]) -> Result<Self::Inner, Self::Error>;
}
Expand description

dyn faster_stun/turn message attribute.

Required Associated Types§

Source

type Error

Source

type Inner

current attribute inner type.

Required Methods§

Source

fn kind() -> AttrKind

get current attribute type.

Source

fn into(value: Self::Inner, buf: &mut BytesMut, t: &'a [u8])

write the current attribute to the buffer.

Source

fn try_from(buf: &'a [u8], t: &'a [u8]) -> Result<Self::Inner, Self::Error>

convert buffer to current attribute.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<'a> Property<'a> for ChannelNumber

Source§

impl<'a> Property<'a> for Data

Source§

impl<'a> Property<'a> for ErrorCode

Source§

impl<'a> Property<'a> for Fingerprint

Source§

impl<'a> Property<'a> for IceControlled

Source§

impl<'a> Property<'a> for IceControlling

Source§

impl<'a> Property<'a> for Lifetime

Source§

impl<'a> Property<'a> for MappedAddress

Source§

impl<'a> Property<'a> for MessageIntegrity

Source§

impl<'a> Property<'a> for Nonce

Source§

impl<'a> Property<'a> for Priority

Source§

impl<'a> Property<'a> for Realm

Source§

impl<'a> Property<'a> for ReqeestedTransport

Source§

impl<'a> Property<'a> for ResponseOrigin

Source§

impl<'a> Property<'a> for Software

Source§

impl<'a> Property<'a> for UseCandidate

Source§

impl<'a> Property<'a> for UserName

Source§

impl<'a> Property<'a> for XorMappedAddress

Source§

impl<'a> Property<'a> for XorPeerAddress

Source§

impl<'a> Property<'a> for XorRelayedAddress