Struct ctru::services::uds::ConnectionStatus
source · pub struct ConnectionStatus(/* private fields */);
Expand description
Status of the connection.
Implementations§
source§impl ConnectionStatus
impl ConnectionStatus
sourcepub fn status(&self) -> Option<ConnectionStatusInfo>
pub fn status(&self) -> Option<ConnectionStatusInfo>
Raw status information.
sourcepub fn cur_node_id(&self) -> NodeID
pub fn cur_node_id(&self) -> NodeID
Network node ID for the current device.
sourcepub fn total_nodes(&self) -> u8
pub fn total_nodes(&self) -> u8
Number of nodes connected to the network.
sourcepub fn node_bitmask(&self) -> u16
pub fn node_bitmask(&self) -> u16
Bitmask for which of the 16 possible nodes are connected to this network; bit 0 is the server, bit 1 is the first original client, etc.
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§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 From<udsConnectionStatus> for ConnectionStatus
impl From<udsConnectionStatus> for ConnectionStatus
source§fn from(value: udsConnectionStatus) -> Self
fn from(value: udsConnectionStatus) -> Self
Converts to this type from the input type.
impl Copy for ConnectionStatus
Auto Trait Implementations§
impl RefUnwindSafe for ConnectionStatus
impl Send for ConnectionStatus
impl Sync for ConnectionStatus
impl Unpin for ConnectionStatus
impl UnwindSafe for ConnectionStatus
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