X213NetworkAddressType

Enum X213NetworkAddressType 

Source
pub enum X213NetworkAddressType {
    X121,
    ISO_DCC,
    F69,
    E163,
    E164,
    ISO_6523_ICD,
    IANA_ICP,
    ITU_T_IND,
    LOCAL,
    URL,
}
Expand description

X.213 NSAP network address type

Variants§

§

X121

IDI based on ITU-T Recommendation X.121 address for use in X.25 Networks

Quoting ITU-T Recommendation X.213 (2001):

The IDI consists of an international public data network number of up to 14 digits allocated according to ITU-T Rec. X.121, commencing with the Data Network Identification Code. The full X.121 number identifies an authority responsible for allocating and assigning values of the DSP.

See: https://www.itu.int/rec/T-REC-X.121-200010-I/en

§

ISO_DCC

IDI based on International Organization for Standardization (ISO) Data Country Code (DCC)

Quoting / Paraphrasing ITU-T Recommendation X.213 (2001):

The IDI consists of a fixed length 3-digit numeric code allocated according to ISO 3166-1. The DSP is allocated and assigned by the ISO member body or sponsored organization to which the ISO DCC value has been assigned, or by an organization designated by the holder of the ISO DCC value to carry out this responsibility.

See: https://en.wikipedia.org/wiki/List_of_ISO_3166_country_codes

§

F69

IDI based on ITU-T Recommendation F.69 address for use in Telex

Quoting ITU-T Recommendation X.213 (2001):

The IDI consists of a telex number of up to 8 digits, allocated according to ITU-T Rec. F.69, commencing with a 2- or 3-digit destination code. The full telex number identifies an authority responsible for allocating and assigning values of the DSP.

A particular IDI for this network type is used to provide a namespace for IP networking within NSAP addressing: 00728722. Its usage is described in IETF RFC

See: https://www.itu.int/rec/T-REC-F.69-199406-I/en

§

E163

IDI based on ITU-T Rec. E.163 address for use in the PSTN

This is a phone number. This network type was deprecated at or before 2001 and you should use E.164 addressing instead.

See: https://www.itu.int/rec/T-REC-E.163/en

§

E164

IDI based on ITU-T Rec. E.164 address for use in the ISDN

This is a phone number.

Quoting ITU-T Recommendation X.213 (2001):

The IDI consists of an international public telecommunication numbering plan number of up to 15 digits allocated according to ITU-T Rec. E.164, commencing with the E.164 international number country code. The full E.164 number identifies an authority responsible for allocating and assigning values of the DSP.

See: https://www.itu.int/rec/T-REC-E.164/en

§

ISO_6523_ICD

IDI is an assigned ISO/IEC 6523-1 International Code Designator (ICD)

§

IANA_ICP

IPv4 or IPv6 address, depending on the IDI, which is assigned by IANA

For either version, the IP address is encoded in binary format, and padded with zeroes to be exactly 20 bytes in total, after the AFI and IDI (which identifies the version).

See: https://www.rfc-editor.org/rfc/rfc4548.html

§

ITU_T_IND

International Network Designator (IND)

§

LOCAL

Locally-assigned DSP

§

URL

Special URL encoding defined (without a name) in ITU-T Rec. X.519.

See: https://www.itu.int/rec/T-REC-X.519, Section 11.4

Trait Implementations§

Source§

impl Clone for X213NetworkAddressType

Source§

fn clone(&self) -> X213NetworkAddressType

Returns a duplicate of the value. Read more
1.0.0 · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Debug for X213NetworkAddressType

Source§

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

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

impl Display for X213NetworkAddressType

Source§

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

Prints a human-readable string, per the procedures defined in IETF RFC 1278.

Source§

impl Hash for X213NetworkAddressType

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl PartialEq for X213NetworkAddressType

Source§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl TryFrom<u8> for X213NetworkAddressType

Source§

type Error = ()

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

fn try_from(value: AFI) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl Copy for X213NetworkAddressType

Source§

impl Eq for X213NetworkAddressType

Source§

impl StructuralPartialEq for X213NetworkAddressType

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> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. 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.