Enum ctru::services::uds::ConnectionStatusInfo
source · #[non_exhaustive]#[repr(u32)]pub enum ConnectionStatusInfo {
Disconnected = 3,
Host = 6,
Client = 9,
Spectator = 10,
Unknown = 11,
}
Expand description
Possible raw connection status values.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Disconnected = 3
Not connected to any network.
Host = 6
Connected as a host.
Client = 9
Connected as a client.
Spectator = 10
Connected as a spectator.
Unknown = 11
Unknown
Trait Implementations§
source§impl Clone for ConnectionStatusInfo
impl Clone for ConnectionStatusInfo
source§fn clone(&self) -> ConnectionStatusInfo
fn clone(&self) -> ConnectionStatusInfo
Returns a copy 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 ConnectionStatusInfo
impl Debug for ConnectionStatusInfo
source§impl From<ConnectionStatusInfo> for u32
impl From<ConnectionStatusInfo> for u32
source§fn from(value: ConnectionStatusInfo) -> Self
fn from(value: ConnectionStatusInfo) -> Self
Converts to this type from the input type.
source§impl PartialEq for ConnectionStatusInfo
impl PartialEq for ConnectionStatusInfo
source§fn eq(&self, other: &ConnectionStatusInfo) -> bool
fn eq(&self, other: &ConnectionStatusInfo) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl TryFrom<u32> for ConnectionStatusInfo
impl TryFrom<u32> for ConnectionStatusInfo
impl Copy for ConnectionStatusInfo
impl Eq for ConnectionStatusInfo
impl StructuralPartialEq for ConnectionStatusInfo
Auto Trait Implementations§
impl RefUnwindSafe for ConnectionStatusInfo
impl Send for ConnectionStatusInfo
impl Sync for ConnectionStatusInfo
impl Unpin for ConnectionStatusInfo
impl UnwindSafe for ConnectionStatusInfo
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§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