#[repr(i32)]pub enum RepeatMode {
Unspecified = 0,
None = 1,
One = 2,
All = 3,
}Variants§
Implementations§
Source§impl RepeatMode
impl RepeatMode
Source§impl RepeatMode
impl RepeatMode
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 RepeatMode
impl Clone for RepeatMode
Source§fn clone(&self) -> RepeatMode
fn clone(&self) -> RepeatMode
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RepeatMode
impl Debug for RepeatMode
Source§impl Default for RepeatMode
impl Default for RepeatMode
Source§fn default() -> RepeatMode
fn default() -> RepeatMode
Returns the “default value” for a type. Read more
Source§impl From<RepeatMode> for RepeatMode
impl From<RepeatMode> for RepeatMode
Source§fn from(value: RepeatMode) -> Self
fn from(value: RepeatMode) -> Self
Converts to this type from the input type.
Source§impl From<RepeatMode> for RepeatMode
impl From<RepeatMode> for RepeatMode
Source§fn from(val: RepeatMode) -> Self
fn from(val: RepeatMode) -> Self
Converts to this type from the input type.
Source§impl From<RepeatMode> for i32
impl From<RepeatMode> for i32
Source§fn from(value: RepeatMode) -> i32
fn from(value: RepeatMode) -> i32
Converts to this type from the input type.
Source§impl Hash for RepeatMode
impl Hash for RepeatMode
Source§impl Ord for RepeatMode
impl Ord for RepeatMode
Source§impl PartialEq for RepeatMode
impl PartialEq for RepeatMode
Source§impl PartialOrd for RepeatMode
impl PartialOrd for RepeatMode
Source§impl TryFrom<i32> for RepeatMode
impl TryFrom<i32> for RepeatMode
Source§type Error = UnknownEnumValue
type Error = UnknownEnumValue
The type returned in the event of a conversion error.
Source§fn try_from(value: i32) -> Result<RepeatMode, UnknownEnumValue>
fn try_from(value: i32) -> Result<RepeatMode, UnknownEnumValue>
Performs the conversion.
impl Copy for RepeatMode
impl Eq for RepeatMode
impl StructuralPartialEq for RepeatMode
Auto Trait Implementations§
impl Freeze for RepeatMode
impl RefUnwindSafe for RepeatMode
impl Send for RepeatMode
impl Sync for RepeatMode
impl Unpin for RepeatMode
impl UnwindSafe for RepeatMode
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)Source§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§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