Enum maddr::Segment [] [src]

pub enum Segment {
    Dccp(u16),
    Http,
    Https,
    IP4(Ipv4Addr),
    IP6(Ipv6Addr),
    Ipfs(MultiHash<Vec<u8>>),
    Sctp(u16),
    Tcp(u16),
    Udp(u16),
    Udt,
    Utp,
}

The possible multiaddr segments.

Variants

Datagram Congestion Control Protocol, a transport layer protocol. The argument is the port number.

Hypertext Transfer Protocol, an application layer protocol.

Hypertext Transfer Protocol layered on top of Transport Layer Security, an application layer protocol.

Internet Protocol version 4, an internet layer protocol. The argument is the IPv4 address.

Internet Protocol version 6, an internet layer protocol. The argument is the IPv6 address.

The InterPlanetary File System, an application layer protocol. The argument is the public hash of an IPFS node.

Stream Control Transmission Protocol, a transport layer protocol. The argument is the port number.

Transmission Control Protocol, a transport layer protocol. The argument is the port number.

User Datagram Protocol, a transport layer protocol. The argument is the port number.

UDP-based Data Transfer Protocol, an application layer protocol.

Micro Transport Protocol, an application? layer protocol.

Methods

impl Segment
[src]

The code used in the binary representation of this segment.

The name used in the string representation of this segment.

Trait Implementations

impl PartialEq for Segment
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for Segment
[src]

impl Clone for Segment
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Display for Segment
[src]

Formats the value using the given formatter.

impl Debug for Segment
[src]

Formats the value using the given formatter.