#[repr(i32)]
pub enum PublishPolicy {
Optional,
Required,
Disabled,
}Expand description
Policy of how the video or audio media type can be published in WebRtcPublishEndpoint.
Variants
Optional
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 a required media track. Media server will approve user requests to stop and to restart publishing the specified media type.
Required
Media type MUST be published.
Media server will try to initialize publishing, and if a required media track couldn’t be acquired, then an error will be thrown. Media server will deny all requests to stop publishing.
Disabled
Media type MUST not be published.
Media server will not try to initialize publishing.
Implementations
Trait Implementations
Returns the “default value” for a type. Read more
Performs the conversion.
This method returns an ordering between self and other values if one exists. Read more
This method tests less than (for self and other) and is used by the < operator. Read more
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read more
This method tests greater than (for self and other) and is used by the > operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for PublishPolicy
impl Send for PublishPolicy
impl Sync for PublishPolicy
impl Unpin for PublishPolicy
impl UnwindSafe for PublishPolicy
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key and return true if they are equal.
Wrap the input message T in a tonic::Request
pub fn vzip(self) -> V
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more