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 From<Policy> for PublishPolicy
impl From<Policy> for PublishPolicy
Source§impl From<PublishPolicy> for Policy
impl From<PublishPolicy> for Policy
Source§fn from(val: PublishPolicy) -> Self
fn from(val: PublishPolicy) -> Self
Converts to this type from the input type.
impl Copy for Policy
impl Eq for Policy
impl StructuralPartialEq for Policy
Auto Trait Implementations§
impl Freeze for Policy
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request