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 duplicate of the value. Read more
1.0.0 (const: unstable) · 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
impl Eq 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 (const: unstable) · 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 for AddressParser
impl PartialEq for AddressParser
Source§fn eq(&self, other: &AddressParser) -> bool
fn eq(&self, other: &AddressParser) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for AddressParser
impl PartialOrd for AddressParser
impl StructuralPartialEq for AddressParser
Auto Trait Implementations§
impl Freeze for AddressParser
impl RefUnwindSafe for AddressParser
impl Send for AddressParser
impl Sync for AddressParser
impl Unpin for AddressParser
impl UnsafeUnpin for AddressParser
impl UnwindSafe for AddressParser
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more