#[repr(i32)]pub enum TransportMode {
Unspecified = 0,
NativePack = 1,
}Variants§
Unspecified = 0
NativePack = 1
Native pack is the steady-state sync transport for hosted repo pull/push.
Implementations§
Source§impl TransportMode
impl TransportMode
Source§impl TransportMode
impl TransportMode
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 TransportMode
impl Clone for TransportMode
Source§fn clone(&self) -> TransportMode
fn clone(&self) -> TransportMode
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for TransportMode
Source§impl Debug for TransportMode
impl Debug for TransportMode
Source§impl Default for TransportMode
impl Default for TransportMode
Source§fn default() -> TransportMode
fn default() -> TransportMode
Returns the “default value” for a type. Read more
impl Eq for TransportMode
Source§impl From<TransportMode> for i32
impl From<TransportMode> for i32
Source§fn from(value: TransportMode) -> i32
fn from(value: TransportMode) -> i32
Converts to this type from the input type.
Source§impl Hash for TransportMode
impl Hash for TransportMode
Source§impl Ord for TransportMode
impl Ord for TransportMode
Source§fn cmp(&self, other: &TransportMode) -> Ordering
fn cmp(&self, other: &TransportMode) -> Ordering
1.21.0 (const: unstable) · 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 TransportMode
impl PartialEq for TransportMode
Source§impl PartialOrd for TransportMode
impl PartialOrd for TransportMode
impl StructuralPartialEq for TransportMode
Source§impl TryFrom<i32> for TransportMode
impl TryFrom<i32> for TransportMode
Source§type Error = UnknownEnumValue
type Error = UnknownEnumValue
The type returned in the event of a conversion error.
Source§fn try_from(value: i32) -> Result<TransportMode, UnknownEnumValue>
fn try_from(value: i32) -> Result<TransportMode, UnknownEnumValue>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for TransportMode
impl RefUnwindSafe for TransportMode
impl Send for TransportMode
impl Sync for TransportMode
impl Unpin for TransportMode
impl UnsafeUnpin for TransportMode
impl UnwindSafe for TransportMode
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