#[repr(i32)]pub enum ConnectionStatus {
Unknown = 0,
Ready = 1,
Exited = 2,
Failed = 3,
}
Expand description
Indicates the status of a connection.
Variants§
Unknown = 0
Connection status is unknown.
Ready = 1
Connection was set up successfully. Server and client may now exchange messages.
Exited = 2
The server’s target program has exited. The server will immediately close the connection, and the client is expected to exit after its cleanup.
Failed = 3
A fatal error was encountered. The connection will be closed.
Implementations§
Source§impl ConnectionStatus
impl ConnectionStatus
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.
Trait Implementations§
Source§impl Clone for ConnectionStatus
impl Clone for ConnectionStatus
Source§fn clone(&self) -> ConnectionStatus
fn clone(&self) -> ConnectionStatus
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 ConnectionStatus
impl Debug for ConnectionStatus
Source§impl Default for ConnectionStatus
impl Default for ConnectionStatus
Source§fn default() -> ConnectionStatus
fn default() -> ConnectionStatus
Returns the “default value” for a type. Read more
Source§impl From<ConnectionStatus> for i32
impl From<ConnectionStatus> for i32
Source§fn from(value: ConnectionStatus) -> i32
fn from(value: ConnectionStatus) -> i32
Converts to this type from the input type.
Source§impl Hash for ConnectionStatus
impl Hash for ConnectionStatus
Source§impl Ord for ConnectionStatus
impl Ord for ConnectionStatus
Source§fn cmp(&self, other: &ConnectionStatus) -> Ordering
fn cmp(&self, other: &ConnectionStatus) -> 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 ConnectionStatus
impl PartialEq for ConnectionStatus
Source§impl PartialOrd for ConnectionStatus
impl PartialOrd for ConnectionStatus
impl Copy for ConnectionStatus
impl Eq for ConnectionStatus
impl StructuralPartialEq for ConnectionStatus
Auto Trait Implementations§
impl Freeze for ConnectionStatus
impl RefUnwindSafe for ConnectionStatus
impl Send for ConnectionStatus
impl Sync for ConnectionStatus
impl Unpin for ConnectionStatus
impl UnwindSafe for ConnectionStatus
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)