pub struct RelayNetworkStatus { /* private fields */ }
Implementations§
source§impl RelayNetworkStatus
impl RelayNetworkStatus
sourcepub fn availability(
&self
) -> Result<NetworkingAvailability, NetworkingAvailabilityError>
pub fn availability( &self ) -> Result<NetworkingAvailability, NetworkingAvailabilityError>
Summary status. When this is “current”, initialization has completed. Anything else means you are not ready yet, or there is a significant problem.
sourcepub fn is_ping_measurement_in_progress(&self) -> bool
pub fn is_ping_measurement_in_progress(&self) -> bool
True if latency measurement is in progress (or pending, awaiting a prerequisite).
sourcepub fn network_config(
&self
) -> Result<NetworkingAvailability, NetworkingAvailabilityError>
pub fn network_config( &self ) -> Result<NetworkingAvailability, NetworkingAvailabilityError>
Status obtaining the network config. This is a prerequisite for relay network access.
Failure to obtain the network config almost always indicates a problem with the local internet connection.
sourcepub fn any_relay(
&self
) -> Result<NetworkingAvailability, NetworkingAvailabilityError>
pub fn any_relay( &self ) -> Result<NetworkingAvailability, NetworkingAvailabilityError>
Current ability to communicate with ANY relay. Note that the complete failure to communicate with any relays almost always indicates a problem with the local Internet connection. (However, just because you can reach a single relay doesn’t mean that the local connection is in perfect health.)
sourcepub fn debugging_message(&self) -> &str
pub fn debugging_message(&self) -> &str
Non-localized English language status. For diagnostic/debugging purposes only.
Trait Implementations§
source§impl From<SteamRelayNetworkStatus_t> for RelayNetworkStatus
impl From<SteamRelayNetworkStatus_t> for RelayNetworkStatus
source§fn from(status: SteamRelayNetworkStatus_t) -> RelayNetworkStatus
fn from(status: SteamRelayNetworkStatus_t) -> RelayNetworkStatus
Auto Trait Implementations§
impl RefUnwindSafe for RelayNetworkStatus
impl Send for RelayNetworkStatus
impl Sync for RelayNetworkStatus
impl Unpin for RelayNetworkStatus
impl UnwindSafe for RelayNetworkStatus
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
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.