pub enum IPAddress {
IPv4(Ipv4Addr),
IPv6(Ipv6Addr),
}Variants§
Trait Implementations§
Source§impl Decodeable for IPAddress
decode_ip_address will read from the stream and decode an IPAddress. Either an IPv4 or an IPv6
address. This also has a side effect of progressing the stream forward to the next data to be
decoded.
impl Decodeable for IPAddress
decode_ip_address will read from the stream and decode an IPAddress. Either an IPv4 or an IPv6 address. This also has a side effect of progressing the stream forward to the next data to be decoded.
fn read_and_decode(stream: &mut dyn ReadSeeker) -> Result<IPAddress, Error>
impl Copy for IPAddress
Auto Trait Implementations§
impl Freeze for IPAddress
impl RefUnwindSafe for IPAddress
impl Send for IPAddress
impl Sync for IPAddress
impl Unpin for IPAddress
impl UnwindSafe for IPAddress
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