Enum sdp::util::ConnectionRole
source · pub enum ConnectionRole {
Unspecified,
Active,
Passive,
Actpass,
Holdconn,
}
Expand description
ConnectionRole indicates which of the end points should initiate the connection establishment
Variants§
Unspecified
Active
ConnectionRoleActive indicates the endpoint will initiate an outgoing connection.
Passive
ConnectionRolePassive indicates the endpoint will accept an incoming connection.
Actpass
ConnectionRoleActpass indicates the endpoint is willing to accept an incoming connection or to initiate an outgoing connection.
Holdconn
ConnectionRoleHoldconn indicates the endpoint does not want the connection to be established for the time being.
Trait Implementations§
source§impl Clone for ConnectionRole
impl Clone for ConnectionRole
source§fn clone(&self) -> ConnectionRole
fn clone(&self) -> ConnectionRole
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ConnectionRole
impl Debug for ConnectionRole
source§impl Default for ConnectionRole
impl Default for ConnectionRole
source§fn default() -> ConnectionRole
fn default() -> ConnectionRole
Returns the “default value” for a type. Read more
source§impl Display for ConnectionRole
impl Display for ConnectionRole
source§impl From<&str> for ConnectionRole
impl From<&str> for ConnectionRole
source§impl From<u8> for ConnectionRole
impl From<u8> for ConnectionRole
source§impl PartialEq for ConnectionRole
impl PartialEq for ConnectionRole
source§fn eq(&self, other: &ConnectionRole) -> bool
fn eq(&self, other: &ConnectionRole) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for ConnectionRole
impl Eq for ConnectionRole
impl StructuralPartialEq for ConnectionRole
Auto Trait Implementations§
impl Freeze for ConnectionRole
impl RefUnwindSafe for ConnectionRole
impl Send for ConnectionRole
impl Sync for ConnectionRole
impl Unpin for ConnectionRole
impl UnwindSafe for ConnectionRole
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