pub enum Policy {
Optional = 0,
Required = 1,
Disabled = 2,
}
Expand description
Policy of how a video or an audio media type can be published in a
WebRtcPublish
media Element
.
Variants§
Optional = 0
Media type may be published.
Media server will try to initialize publishing, but won’t produce any errors if user application fails to (or chooses not to) acquire the required media track. Media server will approve user requests to stop and to restart publishing the specified media type.
Required = 1
Media type must be published.
Media server will try to initialize publishing, and if the required media track cannot be acquired, then an error will be thrown. Media server will deny all requests to stop publishing.
Disabled = 2
Media type must not be published.
Media server will not try to initialize publishing.
Trait Implementations§
source§impl PartialEq for Policy
impl PartialEq for Policy
impl Copy for Policy
impl Eq for Policy
impl StructuralPartialEq for Policy
Auto Trait Implementations§
impl RefUnwindSafe for Policy
impl Send for Policy
impl Sync for Policy
impl Unpin for Policy
impl UnwindSafe for Policy
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