Skip to main content

TypedAttribute

Trait TypedAttribute 

Source
pub trait TypedAttribute: Sized + Display {
    const NAME: &'static str;

    // Required method
    fn parse(value: &str) -> Result<Self>;

    // Provided method
    fn to_attribute(&self) -> Attribute { ... }
}
Expand description

An attribute with a value whose grammar this crate knows.

parse takes the text after a=<name>: and checks all of it; Display writes that text back in the form the defining RFC gives.

Required Associated Constants§

Source

const NAME: &'static str

The attribute name, as it follows a=.

Required Methods§

Source

fn parse(value: &str) -> Result<Self>

Parses the value: everything after a=<name>:.

Provided Methods§

Source

fn to_attribute(&self) -> Attribute

The a= line this value makes.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl TypedAttribute for Candidate

Source§

const NAME: &'static str = "candidate"

Source§

impl TypedAttribute for ConferenceType

Source§

const NAME: &'static str = "type"

Source§

impl TypedAttribute for Content

Source§

const NAME: &'static str = "content"

Source§

impl TypedAttribute for Depend

Source§

const NAME: &'static str = "depend"

Source§

impl TypedAttribute for ExtMap

Source§

const NAME: &'static str = "extmap"

Source§

impl TypedAttribute for Fingerprint

Source§

const NAME: &'static str = "fingerprint"

Source§

impl TypedAttribute for Fmtp

Source§

const NAME: &'static str = "fmtp"

Source§

impl TypedAttribute for FrameRate

Source§

const NAME: &'static str = "framerate"

Source§

impl TypedAttribute for Group

Source§

const NAME: &'static str = "group"

Source§

impl TypedAttribute for IceOptions

Source§

const NAME: &'static str = "ice-options"

Source§

impl TypedAttribute for IcePacing

Source§

const NAME: &'static str = "ice-pacing"

Source§

impl TypedAttribute for IcePwd

Source§

const NAME: &'static str = "ice-pwd"

Source§

impl TypedAttribute for IceUfrag

Source§

const NAME: &'static str = "ice-ufrag"

Source§

impl TypedAttribute for Identity

Source§

const NAME: &'static str = "identity"

Source§

impl TypedAttribute for ImageAttr

Source§

const NAME: &'static str = "imageattr"

Source§

impl TypedAttribute for MaxMessageSize

Source§

const NAME: &'static str = "max-message-size"

Source§

impl TypedAttribute for MaxPtime

Source§

const NAME: &'static str = "maxptime"

Source§

impl TypedAttribute for Mid

Source§

const NAME: &'static str = "mid"

Source§

impl TypedAttribute for Msid

Source§

const NAME: &'static str = "msid"

Source§

impl TypedAttribute for MsidSemantic

Source§

const NAME: &'static str = "msid-semantic"

Source§

impl TypedAttribute for Orient

Source§

const NAME: &'static str = "orient"

Source§

impl TypedAttribute for Ptime

Source§

const NAME: &'static str = "ptime"

Source§

impl TypedAttribute for Quality

Source§

const NAME: &'static str = "quality"

Source§

impl TypedAttribute for RemoteCandidates

Source§

const NAME: &'static str = "remote-candidates"

Source§

impl TypedAttribute for Rid

Source§

const NAME: &'static str = "rid"

Source§

impl TypedAttribute for Rtcp

Source§

const NAME: &'static str = "rtcp"

Source§

impl TypedAttribute for RtcpFb

Source§

const NAME: &'static str = "rtcp-fb"

Source§

impl TypedAttribute for RtcpXr

Source§

const NAME: &'static str = "rtcp-xr"

Source§

impl TypedAttribute for RtpMap

Source§

const NAME: &'static str = "rtpmap"

Source§

impl TypedAttribute for SctpMap

Source§

const NAME: &'static str = "sctpmap"

Source§

impl TypedAttribute for SctpPort

Source§

const NAME: &'static str = "sctp-port"

Source§

impl TypedAttribute for Setup

Source§

const NAME: &'static str = "setup"

Source§

impl TypedAttribute for Simulcast

Source§

const NAME: &'static str = "simulcast"

Source§

impl TypedAttribute for Ssrc

Source§

const NAME: &'static str = "ssrc"

Source§

impl TypedAttribute for SsrcGroup

Source§

const NAME: &'static str = "ssrc-group"

Source§

impl TypedAttribute for TlsId

Source§

const NAME: &'static str = "tls-id"

Source§

impl TypedAttribute for Tool

Source§

const NAME: &'static str = "tool"