pub enum P2pMode {
Never = 0,
IfPossible = 1,
Always = 2,
}
Expand description
Possible peer-to-peer modes of WebRTC interaction in a WebRtcPublish
media Element
.
Variants§
Never = 0
Never use peer-to-peer connections and always send media data through a media server.
IfPossible = 1
Use peer-to-peer connections directly if it’s possible, otherwise send media data through a media server.
Always = 2
Send media data via peer-to-peer connections only, and never through a media server.
Trait Implementations§
source§impl PartialEq for P2pMode
impl PartialEq for P2pMode
impl Copy for P2pMode
impl Eq for P2pMode
impl StructuralPartialEq for P2pMode
Auto Trait Implementations§
impl RefUnwindSafe for P2pMode
impl Send for P2pMode
impl Sync for P2pMode
impl Unpin for P2pMode
impl UnwindSafe for P2pMode
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