pub enum ConnectFailure {
SelectNetworkFailure(SelectNetworkFailure),
ScanFailure(ScanResultCode),
JoinFailure(StatusCode),
AuthenticationFailure(StatusCode),
AssociationFailure(AssociationFailure),
EstablishRsnaFailure(EstablishRsnaFailure),
}
Variants§
SelectNetworkFailure(SelectNetworkFailure)
ScanFailure(ScanResultCode)
JoinFailure(StatusCode)
AuthenticationFailure(StatusCode)
AssociationFailure(AssociationFailure)
EstablishRsnaFailure(EstablishRsnaFailure)
Implementations§
Source§impl ConnectFailure
impl ConnectFailure
pub fn is_timeout(&self) -> bool
Sourcepub fn likely_due_to_credential_rejected(&self) -> bool
pub fn likely_due_to_credential_rejected(&self) -> bool
Returns true if failure was likely caused by rejected credentials. In some cases, we cannot be 100% certain that credentials were rejected, but it’s worth noting when we observe a failure event that was more than likely caused by rejected credentials.
pub fn status_code(&self) -> StatusCode
Trait Implementations§
Source§impl Debug for ConnectFailure
impl Debug for ConnectFailure
Source§impl From<AssociationFailure> for ConnectFailure
impl From<AssociationFailure> for ConnectFailure
Source§fn from(failure: AssociationFailure) -> Self
fn from(failure: AssociationFailure) -> Self
Converts to this type from the input type.
Source§impl From<EstablishRsnaFailure> for ConnectFailure
impl From<EstablishRsnaFailure> for ConnectFailure
Source§fn from(failure: EstablishRsnaFailure) -> Self
fn from(failure: EstablishRsnaFailure) -> Self
Converts to this type from the input type.
Source§impl From<SelectNetworkFailure> for ConnectFailure
impl From<SelectNetworkFailure> for ConnectFailure
Source§fn from(failure: SelectNetworkFailure) -> Self
fn from(failure: SelectNetworkFailure) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ConnectFailure
impl PartialEq for ConnectFailure
impl StructuralPartialEq for ConnectFailure
Auto Trait Implementations§
impl Freeze for ConnectFailure
impl RefUnwindSafe for ConnectFailure
impl Send for ConnectFailure
impl Sync for ConnectFailure
impl Unpin for ConnectFailure
impl UnwindSafe for ConnectFailure
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