#[repr(i32)]pub enum TrunkKind {
TrunkLegacy = 0,
TrunkInbound = 1,
TrunkOutbound = 2,
}
Variants§
Implementations§
Source§impl TrunkKind
impl TrunkKind
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§
§impl<'de> Deserialize<'de> for TrunkKind
impl<'de> Deserialize<'de> for TrunkKind
§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Ord for TrunkKind
impl Ord for TrunkKind
Source§impl PartialOrd for TrunkKind
impl PartialOrd for TrunkKind
impl Copy for TrunkKind
impl Eq for TrunkKind
impl StructuralPartialEq for TrunkKind
Auto Trait Implementations§
impl Freeze for TrunkKind
impl RefUnwindSafe for TrunkKind
impl Send for TrunkKind
impl Sync for TrunkKind
impl Unpin for TrunkKind
impl UnwindSafe for TrunkKind
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