Struct address_parser::AddressParser
source · pub struct AddressParser {
pub ip_address: String,
pub port_no: usize,
pub protocol_type: ProtocolType,
pub ip_version: IPAddressVersion,
}Fields§
§ip_address: String§port_no: usize§protocol_type: ProtocolType§ip_version: IPAddressVersionImplementations§
source§impl AddressParser
impl AddressParser
pub fn object_to_string(address_object: AddressParser) -> String
pub fn string_to_object(address_string: String) -> AddressParser
pub fn binding_addr_to_object(
local_addr: String,
protocol_type: ProtocolType,
ip_version: IPAddressVersion
) -> AddressParser
pub fn binding_addr_to_string(
local_addr: String,
protocol_type: ProtocolType,
ip_version: IPAddressVersion
) -> String
pub fn local_addr_for_binding(address_object: AddressParser) -> String
Trait Implementations§
source§impl Clone for AddressParser
impl Clone for AddressParser
source§fn clone(&self) -> AddressParser
fn clone(&self) -> AddressParser
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for AddressParser
impl Debug for AddressParser
source§impl Ord for AddressParser
impl Ord for AddressParser
source§fn cmp(&self, other: &AddressParser) -> Ordering
fn cmp(&self, other: &AddressParser) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<AddressParser> for AddressParser
impl PartialEq<AddressParser> for AddressParser
source§fn eq(&self, other: &AddressParser) -> bool
fn eq(&self, other: &AddressParser) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd<AddressParser> for AddressParser
impl PartialOrd<AddressParser> for AddressParser
source§fn partial_cmp(&self, other: &AddressParser) -> Option<Ordering>
fn partial_cmp(&self, other: &AddressParser) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read more