Enum google_api_proto::google::cloud::video::livestream::v1::input_config::InputSwitchMode
source · #[repr(i32)]pub enum InputSwitchMode {
Unspecified = 0,
FailoverPreferPrimary = 1,
Manual = 3,
}
Expand description
Input switch mode.
Variants§
Unspecified = 0
The input switch mode is not specified.
FailoverPreferPrimary = 1
Automatic failover is enabled. The primary input stream is always preferred over its backup input streams configured using the [AutomaticFailover][google.cloud.video.livestream.v1.InputAttachment.AutomaticFailover] field.
Manual = 3
Automatic failover is disabled. You must use the [inputSwitch][google.cloud.video.livestream.v1.Event.input_switch] event to switch the active input source for the channel to stream from. When this mode is chosen, the [AutomaticFailover][google.cloud.video.livestream.v1.InputAttachment.AutomaticFailover] field is ignored.
Implementations§
source§impl InputSwitchMode
impl InputSwitchMode
sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
source§impl Clone for InputSwitchMode
impl Clone for InputSwitchMode
source§fn clone(&self) -> InputSwitchMode
fn clone(&self) -> InputSwitchMode
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for InputSwitchMode
impl Debug for InputSwitchMode
source§impl Default for InputSwitchMode
impl Default for InputSwitchMode
source§fn default() -> InputSwitchMode
fn default() -> InputSwitchMode
source§impl From<InputSwitchMode> for i32
impl From<InputSwitchMode> for i32
source§fn from(value: InputSwitchMode) -> i32
fn from(value: InputSwitchMode) -> i32
source§impl Hash for InputSwitchMode
impl Hash for InputSwitchMode
source§impl Ord for InputSwitchMode
impl Ord for InputSwitchMode
source§fn cmp(&self, other: &InputSwitchMode) -> Ordering
fn cmp(&self, other: &InputSwitchMode) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
source§impl PartialEq for InputSwitchMode
impl PartialEq for InputSwitchMode
source§fn eq(&self, other: &InputSwitchMode) -> bool
fn eq(&self, other: &InputSwitchMode) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for InputSwitchMode
impl PartialOrd for InputSwitchMode
source§fn partial_cmp(&self, other: &InputSwitchMode) -> Option<Ordering>
fn partial_cmp(&self, other: &InputSwitchMode) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl TryFrom<i32> for InputSwitchMode
impl TryFrom<i32> for InputSwitchMode
§type Error = UnknownEnumValue
type Error = UnknownEnumValue
source§fn try_from(value: i32) -> Result<InputSwitchMode, UnknownEnumValue>
fn try_from(value: i32) -> Result<InputSwitchMode, UnknownEnumValue>
impl Copy for InputSwitchMode
impl Eq for InputSwitchMode
impl StructuralPartialEq for InputSwitchMode
Auto Trait Implementations§
impl Freeze for InputSwitchMode
impl RefUnwindSafe for InputSwitchMode
impl Send for InputSwitchMode
impl Sync for InputSwitchMode
impl Unpin for InputSwitchMode
impl UnwindSafe for InputSwitchMode
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
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<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
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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>
T
in a tonic::Request