Enum NSUrlError

Source
#[repr(C)]
pub enum NSUrlError {
Show 49 variants Unknown = -1, BackgroundSessionRequiresSharedContainer = -995, BackgroundSessionInUseByAnotherProcess = -996, BackgroundSessionWasDisconnected = -997, Cancelled = -999, BadURL = -1_000, TimedOut = -1_001, UnsupportedURL = -1_002, CannotFindHost = -1_003, CannotConnectToHost = -1_004, NetworkConnectionLost = -1_005, DNSLookupFailed = -1_006, HTTPTooManyRedirects = -1_007, ResourceUnavailable = -1_008, NotConnectedToInternet = -1_009, RedirectToNonExistentLocation = -1_010, BadServerResponse = -1_011, UserCancelledAuthentication = -1_012, UserAuthenticationRequired = -1_013, ZeroByteResource = -1_014, CannotDecodeRawData = -1_015, CannotDecodeContentData = -1_016, CannotParseResponse = -1_017, InternationalRoamingOff = -1_018, CallIsActive = -1_019, DataNotAllowed = -1_020, RequestBodyStreamExhausted = -1_021, AppTransportSecurityRequiresSecureConnection = -1_022, FileDoesNotExist = -1_100, FileIsDirectory = -1_101, NoPermissionsToReadFile = -1_102, DataLengthExceedsMaximum = -1_103, FileOutsideSafeArea = -1_104, SecureConnectionFailed = -1_200, ServerCertificateHasBadDate = -1_201, ServerCertificateUntrusted = -1_202, ServerCertificateHasUnknownRoot = -1_203, ServerCertificateNotYetValid = -1_204, ClientCertificateRejected = -1_205, ClientCertificateRequired = -1_206, CannotLoadFromNetwork = -2_000, CannotCreateFile = -3_000, CannotOpenFile = -3_001, CannotCloseFile = -3_002, CannotWriteToFile = -3_003, CannotRemoveFile = -3_004, CannotMoveFile = -3_005, DownloadDecodingFailedMidStream = -3_006, DownloadDecodingFailedToComplete = -3_007,
}

Variants§

§

Unknown = -1

§

BackgroundSessionRequiresSharedContainer = -995

§

BackgroundSessionInUseByAnotherProcess = -996

§

BackgroundSessionWasDisconnected = -997

§

Cancelled = -999

§

BadURL = -1_000

§

TimedOut = -1_001

§

UnsupportedURL = -1_002

§

CannotFindHost = -1_003

§

CannotConnectToHost = -1_004

§

NetworkConnectionLost = -1_005

§

DNSLookupFailed = -1_006

§

HTTPTooManyRedirects = -1_007

§

ResourceUnavailable = -1_008

§

NotConnectedToInternet = -1_009

§

RedirectToNonExistentLocation = -1_010

§

BadServerResponse = -1_011

§

UserCancelledAuthentication = -1_012

§

UserAuthenticationRequired = -1_013

§

ZeroByteResource = -1_014

§

CannotDecodeRawData = -1_015

§

CannotDecodeContentData = -1_016

§

CannotParseResponse = -1_017

§

InternationalRoamingOff = -1_018

§

CallIsActive = -1_019

§

DataNotAllowed = -1_020

§

RequestBodyStreamExhausted = -1_021

§

AppTransportSecurityRequiresSecureConnection = -1_022

§

FileDoesNotExist = -1_100

§

FileIsDirectory = -1_101

§

NoPermissionsToReadFile = -1_102

§

DataLengthExceedsMaximum = -1_103

§

FileOutsideSafeArea = -1_104

§

SecureConnectionFailed = -1_200

§

ServerCertificateHasBadDate = -1_201

§

ServerCertificateUntrusted = -1_202

§

ServerCertificateHasUnknownRoot = -1_203

§

ServerCertificateNotYetValid = -1_204

§

ClientCertificateRejected = -1_205

§

ClientCertificateRequired = -1_206

§

CannotLoadFromNetwork = -2_000

§

CannotCreateFile = -3_000

§

CannotOpenFile = -3_001

§

CannotCloseFile = -3_002

§

CannotWriteToFile = -3_003

§

CannotRemoveFile = -3_004

§

CannotMoveFile = -3_005

§

DownloadDecodingFailedMidStream = -3_006

§

DownloadDecodingFailedToComplete = -3_007

Trait Implementations§

Source§

impl Debug for NSUrlError

Source§

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

Formats the value using the given formatter. Read more

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> 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, 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.