pub enum Direction {
SendOnly,
RecvOnly,
SendRecv,
Inactive,
}
Expand description
Media direction.
And also extmap direction.
Variants§
SendOnly
Send only direction.
RecvOnly
Receive only direction.
SendRecv
Bi-directional.
Inactive
Disabled direction.
Implementations§
source§impl Direction
impl Direction
sourcepub fn invert(&self) -> Self
pub fn invert(&self) -> Self
Change the direction to the opposite.
SendRecv
and Inactive
are left unchanged.
sourcepub fn is_sending(&self) -> bool
pub fn is_sending(&self) -> bool
Whether this direction is a sending direction.
sourcepub fn is_receiving(&self) -> bool
pub fn is_receiving(&self) -> bool
Whether this direction is a receiving direction.