pub enum AttributeLevel {
Session,
Media,
Both,
Source,
}Expand description
Where an attribute may appear.
Variants§
Session
Session level only (S).
Media
Media level only (M).
Both
Either level (B).
Source
Source level: inside a=ssrc (SR).
Implementations§
Source§impl AttributeLevel
impl AttributeLevel
Sourcepub fn allows_session(self) -> bool
pub fn allows_session(self) -> bool
Whether an attribute of this level may be written at the session level.
Sourcepub fn allows_media(self) -> bool
pub fn allows_media(self) -> bool
Whether an attribute of this level may be written in a media description.
Trait Implementations§
Source§impl Clone for AttributeLevel
impl Clone for AttributeLevel
impl Copy for AttributeLevel
Source§impl Debug for AttributeLevel
impl Debug for AttributeLevel
impl Eq for AttributeLevel
Source§impl Hash for AttributeLevel
impl Hash for AttributeLevel
Source§impl PartialEq for AttributeLevel
impl PartialEq for AttributeLevel
impl StructuralPartialEq for AttributeLevel
Auto Trait Implementations§
impl Forget for AttributeLevel
impl Freeze for AttributeLevel
impl Move for AttributeLevel
impl RefUnwindSafe for AttributeLevel
impl Send for AttributeLevel
impl Sync for AttributeLevel
impl Unpin for AttributeLevel
impl UnsafeUnpin for AttributeLevel
impl UnwindSafe for AttributeLevel
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more