pub enum NetworkFailure {
None = 0,
Unknown = 1,
NameResolution = 2,
SecureConnection = 3,
Proxy = 4,
Timeout = 5,
Connection = 6,
}Expand description
Why the license server could not be reached (native hlm_net_failure;
the .NET SDK’s NetworkFailureReason).
Variants§
None = 0
No transport failure on the last call.
Unknown = 1
Failed; the cause could not be determined.
NameResolution = 2
DNS returned no address for the server — typically a company DNS filter.
SecureConnection = 3
The TLS handshake failed — often an HTTPS-inspecting proxy.
Proxy = 4
A web proxy refused or failed the connection, or demanded credentials (407).
Timeout = 5
The server did not answer in time.
Connection = 6
The address was found but the connection was refused or dropped.
Implementations§
Source§impl NetworkFailure
impl NetworkFailure
Sourcepub fn from_code(code: i32) -> NetworkFailure
pub fn from_code(code: i32) -> NetworkFailure
Map a native hlm_net_failure code; unrecognized codes become Unknown.
Trait Implementations§
Source§impl Clone for NetworkFailure
impl Clone for NetworkFailure
impl Copy for NetworkFailure
Source§impl Debug for NetworkFailure
impl Debug for NetworkFailure
impl Eq for NetworkFailure
Source§impl Hash for NetworkFailure
impl Hash for NetworkFailure
Source§impl PartialEq for NetworkFailure
impl PartialEq for NetworkFailure
impl StructuralPartialEq for NetworkFailure
Auto Trait Implementations§
impl Freeze for NetworkFailure
impl RefUnwindSafe for NetworkFailure
impl Send for NetworkFailure
impl Sync for NetworkFailure
impl Unpin for NetworkFailure
impl UnsafeUnpin for NetworkFailure
impl UnwindSafe for NetworkFailure
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