Skip to main content

NetError

Enum NetError 

Source
pub enum NetError {
Show 240 variants Ok = 0, IoPending = -1, Failed = -2, Aborted = -3, InvalidArgument = -4, InvalidHandle = -5, FileNotFound = -6, TimedOut = -7, FileTooLarge = -8, Unexpected = -9, AccessDenied = -10, NotImplemented = -11, InsufficientResources = -12, OutOfMemory = -13, UploadFileChanged = -14, SocketNotConnected = -15, FileExists = -16, FilePathTooLong = -17, FileNoSpace = -18, FileVirusInfected = -19, BlockedByClient = -20, NetworkChanged = -21, BlockedByAdministrator = -22, SocketConnected = -23, UploadStreamRewindNotSupported = -25, ContextShutDown = -26, BlockedByResponse = -27, CleartextNotPermitted = -29, BlockedByCsp = -30, H2OrQuicRequired = -31, BlockedByOrb = -32, ConnectionClosed = -100, ConnectionReset = -101, ConnectionRefused = -102, ConnectionAborted = -103, ConnectionFailed = -104, NameNotResolved = -105, InternetDisconnected = -106, SslProtocolError = -107, AddressInvalid = -108, AddressUnreachable = -109, SslClientAuthCertNeeded = -110, TunnelConnectionFailed = -111, NoSslVersionsEnabled = -112, SslVersionOrCipherMismatch = -113, SslRenegotiationRequested = -114, ProxyAuthUnsupported = -115, BadSslClientAuthCert = -117, ConnectionTimedOut = -118, HostResolverQueueTooLarge = -119, SocksConnectionFailed = -120, SocksConnectionHostUnreachable = -121, AlpnNegotiationFailed = -122, SslNoRenegotiation = -123, WinsockUnexpectedWrittenBytes = -124, SslDecompressionFailureAlert = -125, SslBadRecordMacAlert = -126, ProxyAuthRequested = -127, ProxyConnectionFailed = -130, MandatoryProxyConfigurationFailed = -131, PreconnectMaxSocketLimit = -133, SslClientAuthPrivateKeyAccessDenied = -134, SslClientAuthCertNoPrivateKey = -135, ProxyCertificateInvalid = -136, NameResolutionFailed = -137, NetworkAccessDenied = -138, TemporarilyThrottled = -139, HttpsProxyTunnelResponseRedirect = -140, SslClientAuthSignatureFailed = -141, MsgTooBig = -142, WsProtocolError = -145, AddressInUse = -147, SslHandshakeNotCompleted = -148, SslBadPeerPublicKey = -149, SslPinnedKeyNotInCertChain = -150, ClientAuthCertTypeUnsupported = -151, SslDecryptErrorAlert = -153, WsThrottleQueueTooLarge = -154, SslServerCertChanged = -156, SslUnrecognizedNameAlert = -159, SocketSetReceiveBufferSizeError = -160, SocketSetSendBufferSizeError = -161, SocketReceiveBufferSizeUnchangeable = -162, SocketSendBufferSizeUnchangeable = -163, SslClientAuthCertBadFormat = -164, IcannNameCollision = -166, SslServerCertBadFormat = -167, CtSthParsingFailed = -168, CtSthIncomplete = -169, UnableToReuseConnectionForProxyAuth = -170, CtConsistencyProofParsingFailed = -171, SslObsoleteCipher = -172, WsUpgrade = -173, ReadIfReadyNotImplemented = -174, NoBufferSpace = -176, SslClientAuthNoCommonAlgorithms = -177, EarlyDataRejected = -178, WrongVersionOnEarlyData = -179, Tls13DowngradeDetected = -180, SslKeyUsageIncompatible = -181, InvalidEchConfigList = -182, EchNotNegotiated = -183, EchFallbackCertificateInvalid = -184, CertCommonNameInvalid = -200, CertDateInvalid = -201, CertAuthorityInvalid = -202, CertContainsErrors = -203, CertNoRevocationMechanism = -204, CertUnableToCheckRevocation = -205, CertRevoked = -206, CertInvalid = -207, CertWeakSignatureAlgorithm = -208, CertNonUniqueName = -210, CertWeakKey = -211, CertNameConstraintViolation = -212, CertValidityTooLong = -213, CertificateTransparencyRequired = -214, CertSymantecLegacy = -215, CertKnownInterceptionBlocked = -217, SslObsoleteVersionOrCipher = -218, CertEnd = -219, InvalidUrl = -300, DisallowedUrlScheme = -301, UnknownUrlScheme = -302, InvalidRedirect = -303, TooManyRedirects = -310, UnsafeRedirect = -311, UnsafePort = -312, InvalidResponse = -320, InvalidChunkedEncoding = -321, MethodUnsupported = -322, UnexpectedProxyAuth = -323, EmptyResponse = -324, ResponseHeadersTooBig = -325, PacScriptFailed = -327, RequestRangeNotSatisfiable = -328, MalformedIdentity = -329, ContentDecodingFailed = -330, NetworkIoSuspended = -331, SynReplyNotReceived = -332, EncodingConversionFailed = -333, UnrecognizedFtpDirectoryListingFormat = -334, NoSupportedProxies = -336, Http2ProtocolError = -337, InvalidAuthCredentials = -338, UnsupportedAuthScheme = -339, EncodingDetectionFailed = -340, MissingAuthCredentials = -341, UnexpectedSecurityLibraryStatus = -342, MisconfiguredAuthEnvironment = -343, UndocumentedSecurityLibraryStatus = -344, ResponseBodyTooBigToDrain = -345, ResponseHeadersMultipleContentLength = -346, IncompleteHttp2Headers = -347, PacNotInDhcp = -348, ResponseHeadersMultipleContentDisposition = -349, ResponseHeadersMultipleLocation = -350, Http2ServerRefusedStream = -351, Http2PingFailed = -352, ContentLengthMismatch = -354, IncompleteChunkedEncoding = -355, QuicProtocolError = -356, ResponseHeadersTruncated = -357, QuicHandshakeFailed = -358, Http2InadequateTransportSecurity = -360, Http2FlowControlError = -361, Http2FrameSizeError = -362, Http2CompressionError = -363, ProxyAuthRequestedWithNoConnection = -364, Http11Required = -365, ProxyHttp11Required = -366, PacScriptTerminated = -367, InvalidHttpResponse = -370, ContentDecodingInitFailed = -371, Http2RstStreamNoErrorReceived = -372, Http2PushedStreamNotAvailable = -373, Http2ClaimedPushedStreamResetByServer = -374, TooManyRetries = -375, Http2StreamClosed = -376, Http2ClientRefusedStream = -377, Http2PushedResponseDoesNotMatch = -378, HttpResponseCodeFailure = -379, QuicUnknownCertRoot = -380, QuicGoawayRequestCanBeRetried = -381, TooManyAcceptChRestarts = -382, InconsistentIpAddressSpace = -383, CachedIpAddressSpaceBlockedByLocalNetworkAccessPolicy = -384, CacheMiss = -400, CacheReadFailure = -401, CacheWriteFailure = -402, CacheOperationUnsupported = -403, CacheOpenFailure = -404, CacheCreateFailure = -405, CacheRace = -406, CacheChecksumReadFailure = -407, CacheChecksumMismatch = -408, CacheLockTimeout = -409, CacheAuthFailureAfterRead = -410, CacheEntryNotSuitable = -411, CacheDoomFailure = -412, CacheOpenOrCreateFailure = -413, InsecureResponse = -501, NoPrivateKeyForCert = -502, AddUserCertFailed = -503, InvalidSignedExchange = -504, InvalidWebBundle = -505, TrustTokenOperationFailed = -506, TrustTokenOperationSuccessWithoutSendingRequest = -507, FtpFailed = -601, FtpServiceUnavailable = -602, FtpTransferAborted = -603, FtpFileBusy = -604, FtpSyntaxError = -605, FtpCommandUnsupported = -606, FtpBadCommandSequence = -607, Pkcs12ImportBadPassword = -701, Pkcs12ImportFailed = -702, ImportCaCertNotCa = -703, ImportCertAlreadyExists = -704, ImportCaCertFailed = -705, ImportServerCertFailed = -706, Pkcs12ImportInvalidMac = -707, Pkcs12ImportInvalidFile = -708, Pkcs12ImportUnsupported = -709, KeyGenerationFailed = -710, PrivateKeyExportFailed = -712, SelfSignedCertGenerationFailed = -713, CertDatabaseChanged = -714, CertVerifierChanged = -716, DnsMalformedResponse = -800, DnsServerRequiresTcp = -801, DnsServerFailed = -802, DnsTimedOut = -803, DnsCacheMiss = -804, DnsSearchEmpty = -805, DnsSortError = -806, DnsSecureResolverHostnameResolutionFailed = -808, DnsNameHttpsOnly = -809, DnsRequestCanceled = -810, DnsNoMatchingSupportedAlpn = -811,
}

Variants§

§

Ok = 0

§

IoPending = -1

§

Failed = -2

§

Aborted = -3

§

InvalidArgument = -4

§

InvalidHandle = -5

§

FileNotFound = -6

§

TimedOut = -7

§

FileTooLarge = -8

§

Unexpected = -9

§

AccessDenied = -10

§

NotImplemented = -11

§

InsufficientResources = -12

§

OutOfMemory = -13

§

UploadFileChanged = -14

§

SocketNotConnected = -15

§

FileExists = -16

§

FilePathTooLong = -17

§

FileNoSpace = -18

§

FileVirusInfected = -19

§

BlockedByClient = -20

§

NetworkChanged = -21

§

BlockedByAdministrator = -22

§

SocketConnected = -23

§

UploadStreamRewindNotSupported = -25

§

ContextShutDown = -26

§

BlockedByResponse = -27

§

CleartextNotPermitted = -29

§

BlockedByCsp = -30

§

H2OrQuicRequired = -31

§

BlockedByOrb = -32

§

ConnectionClosed = -100

§

ConnectionReset = -101

§

ConnectionRefused = -102

§

ConnectionAborted = -103

§

ConnectionFailed = -104

§

NameNotResolved = -105

§

InternetDisconnected = -106

§

SslProtocolError = -107

§

AddressInvalid = -108

§

AddressUnreachable = -109

§

SslClientAuthCertNeeded = -110

§

TunnelConnectionFailed = -111

§

NoSslVersionsEnabled = -112

§

SslVersionOrCipherMismatch = -113

§

SslRenegotiationRequested = -114

§

ProxyAuthUnsupported = -115

§

BadSslClientAuthCert = -117

§

ConnectionTimedOut = -118

§

HostResolverQueueTooLarge = -119

§

SocksConnectionFailed = -120

§

SocksConnectionHostUnreachable = -121

§

AlpnNegotiationFailed = -122

§

SslNoRenegotiation = -123

§

WinsockUnexpectedWrittenBytes = -124

§

SslDecompressionFailureAlert = -125

§

SslBadRecordMacAlert = -126

§

ProxyAuthRequested = -127

§

ProxyConnectionFailed = -130

§

MandatoryProxyConfigurationFailed = -131

§

PreconnectMaxSocketLimit = -133

§

SslClientAuthPrivateKeyAccessDenied = -134

§

SslClientAuthCertNoPrivateKey = -135

§

ProxyCertificateInvalid = -136

§

NameResolutionFailed = -137

§

NetworkAccessDenied = -138

§

TemporarilyThrottled = -139

§

HttpsProxyTunnelResponseRedirect = -140

§

SslClientAuthSignatureFailed = -141

§

MsgTooBig = -142

§

WsProtocolError = -145

§

AddressInUse = -147

§

SslHandshakeNotCompleted = -148

§

SslBadPeerPublicKey = -149

§

SslPinnedKeyNotInCertChain = -150

§

ClientAuthCertTypeUnsupported = -151

§

SslDecryptErrorAlert = -153

§

WsThrottleQueueTooLarge = -154

§

SslServerCertChanged = -156

§

SslUnrecognizedNameAlert = -159

§

SocketSetReceiveBufferSizeError = -160

§

SocketSetSendBufferSizeError = -161

§

SocketReceiveBufferSizeUnchangeable = -162

§

SocketSendBufferSizeUnchangeable = -163

§

SslClientAuthCertBadFormat = -164

§

IcannNameCollision = -166

§

SslServerCertBadFormat = -167

§

CtSthParsingFailed = -168

§

CtSthIncomplete = -169

§

UnableToReuseConnectionForProxyAuth = -170

§

CtConsistencyProofParsingFailed = -171

§

SslObsoleteCipher = -172

§

WsUpgrade = -173

§

ReadIfReadyNotImplemented = -174

§

NoBufferSpace = -176

§

SslClientAuthNoCommonAlgorithms = -177

§

EarlyDataRejected = -178

§

WrongVersionOnEarlyData = -179

§

Tls13DowngradeDetected = -180

§

SslKeyUsageIncompatible = -181

§

InvalidEchConfigList = -182

§

EchNotNegotiated = -183

§

EchFallbackCertificateInvalid = -184

§

CertCommonNameInvalid = -200

§

CertDateInvalid = -201

§

CertAuthorityInvalid = -202

§

CertContainsErrors = -203

§

CertNoRevocationMechanism = -204

§

CertUnableToCheckRevocation = -205

§

CertRevoked = -206

§

CertInvalid = -207

§

CertWeakSignatureAlgorithm = -208

§

CertNonUniqueName = -210

§

CertWeakKey = -211

§

CertNameConstraintViolation = -212

§

CertValidityTooLong = -213

§

CertificateTransparencyRequired = -214

§

CertSymantecLegacy = -215

§

CertKnownInterceptionBlocked = -217

§

SslObsoleteVersionOrCipher = -218

§

CertEnd = -219

§

InvalidUrl = -300

§

DisallowedUrlScheme = -301

§

UnknownUrlScheme = -302

§

InvalidRedirect = -303

§

TooManyRedirects = -310

§

UnsafeRedirect = -311

§

UnsafePort = -312

§

InvalidResponse = -320

§

InvalidChunkedEncoding = -321

§

MethodUnsupported = -322

§

UnexpectedProxyAuth = -323

§

EmptyResponse = -324

§

ResponseHeadersTooBig = -325

§

PacScriptFailed = -327

§

RequestRangeNotSatisfiable = -328

§

MalformedIdentity = -329

§

ContentDecodingFailed = -330

§

NetworkIoSuspended = -331

§

SynReplyNotReceived = -332

§

EncodingConversionFailed = -333

§

UnrecognizedFtpDirectoryListingFormat = -334

§

NoSupportedProxies = -336

§

Http2ProtocolError = -337

§

InvalidAuthCredentials = -338

§

UnsupportedAuthScheme = -339

§

EncodingDetectionFailed = -340

§

MissingAuthCredentials = -341

§

UnexpectedSecurityLibraryStatus = -342

§

MisconfiguredAuthEnvironment = -343

§

UndocumentedSecurityLibraryStatus = -344

§

ResponseBodyTooBigToDrain = -345

§

ResponseHeadersMultipleContentLength = -346

§

IncompleteHttp2Headers = -347

§

PacNotInDhcp = -348

§

ResponseHeadersMultipleContentDisposition = -349

§

ResponseHeadersMultipleLocation = -350

§

Http2ServerRefusedStream = -351

§

Http2PingFailed = -352

§

ContentLengthMismatch = -354

§

IncompleteChunkedEncoding = -355

§

QuicProtocolError = -356

§

ResponseHeadersTruncated = -357

§

QuicHandshakeFailed = -358

§

Http2InadequateTransportSecurity = -360

§

Http2FlowControlError = -361

§

Http2FrameSizeError = -362

§

Http2CompressionError = -363

§

ProxyAuthRequestedWithNoConnection = -364

§

Http11Required = -365

§

ProxyHttp11Required = -366

§

PacScriptTerminated = -367

§

InvalidHttpResponse = -370

§

ContentDecodingInitFailed = -371

§

Http2RstStreamNoErrorReceived = -372

§

Http2PushedStreamNotAvailable = -373

§

Http2ClaimedPushedStreamResetByServer = -374

§

TooManyRetries = -375

§

Http2StreamClosed = -376

§

Http2ClientRefusedStream = -377

§

Http2PushedResponseDoesNotMatch = -378

§

HttpResponseCodeFailure = -379

§

QuicUnknownCertRoot = -380

§

QuicGoawayRequestCanBeRetried = -381

§

TooManyAcceptChRestarts = -382

§

InconsistentIpAddressSpace = -383

§

CachedIpAddressSpaceBlockedByLocalNetworkAccessPolicy = -384

§

CacheMiss = -400

§

CacheReadFailure = -401

§

CacheWriteFailure = -402

§

CacheOperationUnsupported = -403

§

CacheOpenFailure = -404

§

CacheCreateFailure = -405

§

CacheRace = -406

§

CacheChecksumReadFailure = -407

§

CacheChecksumMismatch = -408

§

CacheLockTimeout = -409

§

CacheAuthFailureAfterRead = -410

§

CacheEntryNotSuitable = -411

§

CacheDoomFailure = -412

§

CacheOpenOrCreateFailure = -413

§

InsecureResponse = -501

§

NoPrivateKeyForCert = -502

§

AddUserCertFailed = -503

§

InvalidSignedExchange = -504

§

InvalidWebBundle = -505

§

TrustTokenOperationFailed = -506

§

TrustTokenOperationSuccessWithoutSendingRequest = -507

§

FtpFailed = -601

§

FtpServiceUnavailable = -602

§

FtpTransferAborted = -603

§

FtpFileBusy = -604

§

FtpSyntaxError = -605

§

FtpCommandUnsupported = -606

§

FtpBadCommandSequence = -607

§

Pkcs12ImportBadPassword = -701

§

Pkcs12ImportFailed = -702

§

ImportCaCertNotCa = -703

§

ImportCertAlreadyExists = -704

§

ImportCaCertFailed = -705

§

ImportServerCertFailed = -706

§

Pkcs12ImportInvalidMac = -707

§

Pkcs12ImportInvalidFile = -708

§

Pkcs12ImportUnsupported = -709

§

KeyGenerationFailed = -710

§

PrivateKeyExportFailed = -712

§

SelfSignedCertGenerationFailed = -713

§

CertDatabaseChanged = -714

§

CertVerifierChanged = -716

§

DnsMalformedResponse = -800

§

DnsServerRequiresTcp = -801

§

DnsServerFailed = -802

§

DnsTimedOut = -803

§

DnsCacheMiss = -804

§

DnsSearchEmpty = -805

§

DnsSortError = -806

§

DnsSecureResolverHostnameResolutionFailed = -808

§

DnsNameHttpsOnly = -809

§

DnsRequestCanceled = -810

§

DnsNoMatchingSupportedAlpn = -811

Implementations§

Trait Implementations§

Source§

impl Clone for NetError

Source§

fn clone(&self) -> NetError

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for NetError

Source§

impl Debug for NetError

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Eq for NetError

Source§

impl From<NetError> for ArkWeb_NetError

Source§

fn from(attr: NetError) -> Self

Converts to this type from the input type.
Source§

impl From<i32> for NetError

Source§

fn from(attr: ArkWeb_NetError) -> Self

Converts to this type from the input type.
Source§

impl PartialEq for NetError

Source§

fn eq(&self, other: &NetError) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for NetError

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.