#[repr(i32)]pub enum Infrastructure {
Unspecified = 0,
Psc = 1,
}Expand description
The infrastructure used for connections between consumers/producers.
Variants§
Unspecified = 0
An invalid infrastructure as the default case.
Psc = 1
Private Service Connect is used for connections.
Implementations§
Source§impl Infrastructure
impl Infrastructure
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 Infrastructure
impl Clone for Infrastructure
Source§fn clone(&self) -> Infrastructure
fn clone(&self) -> Infrastructure
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for Infrastructure
impl Debug for Infrastructure
Source§impl Default for Infrastructure
impl Default for Infrastructure
Source§fn default() -> Infrastructure
fn default() -> Infrastructure
Returns the “default value” for a type. Read more
Source§impl From<Infrastructure> for i32
impl From<Infrastructure> for i32
Source§fn from(value: Infrastructure) -> i32
fn from(value: Infrastructure) -> i32
Converts to this type from the input type.
Source§impl Hash for Infrastructure
impl Hash for Infrastructure
Source§impl Ord for Infrastructure
impl Ord for Infrastructure
Source§fn cmp(&self, other: &Infrastructure) -> Ordering
fn cmp(&self, other: &Infrastructure) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for Infrastructure
impl PartialEq for Infrastructure
Source§impl PartialOrd for Infrastructure
impl PartialOrd for Infrastructure
Source§impl TryFrom<i32> for Infrastructure
impl TryFrom<i32> for Infrastructure
Source§type Error = UnknownEnumValue
type Error = UnknownEnumValue
The type returned in the event of a conversion error.
Source§fn try_from(value: i32) -> Result<Infrastructure, UnknownEnumValue>
fn try_from(value: i32) -> Result<Infrastructure, UnknownEnumValue>
Performs the conversion.
impl Copy for Infrastructure
impl Eq for Infrastructure
impl StructuralPartialEq for Infrastructure
Auto Trait Implementations§
impl Freeze for Infrastructure
impl RefUnwindSafe for Infrastructure
impl Send for Infrastructure
impl Sync for Infrastructure
impl Unpin for Infrastructure
impl UnwindSafe for Infrastructure
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