pub struct Ipv4Address {
pub octets: [u8; 4],
}
Expand description
An IPv4 address.
Fields§
§octets: [u8; 4]
IP address octets.
Trait Implementations§
Source§impl Clone for Ipv4Address
impl Clone for Ipv4Address
Source§fn clone(&self) -> Ipv4Address
fn clone(&self) -> Ipv4Address
Returns a duplicate 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 Ipv4Address
impl Debug for Ipv4Address
Source§impl Parse<'_> for Ipv4Address
impl Parse<'_> for Ipv4Address
Source§fn parse_partial(reader: &mut ByteReader<'_>) -> Result<Ipv4Address, ParseError>
fn parse_partial(reader: &mut ByteReader<'_>) -> Result<Ipv4Address, ParseError>
Parses a SOME/IP payload type from a given slice of bytes. Read more
Source§impl PartialEq for Ipv4Address
impl PartialEq for Ipv4Address
Source§impl Serialize for Ipv4Address
impl Serialize for Ipv4Address
Source§fn required_length(&self) -> usize
fn required_length(&self) -> usize
Returns the number of bytes required to store the serialized version of self.
Source§fn serialize_partial(
&self,
byte_writer: &mut ByteWriter<'_>,
) -> Result<(), SerializeError>
fn serialize_partial( &self, byte_writer: &mut ByteWriter<'_>, ) -> Result<(), SerializeError>
Serializes to a byte writer.
impl Eq for Ipv4Address
impl StructuralPartialEq for Ipv4Address
Auto Trait Implementations§
impl Freeze for Ipv4Address
impl RefUnwindSafe for Ipv4Address
impl Send for Ipv4Address
impl Sync for Ipv4Address
impl Unpin for Ipv4Address
impl UnwindSafe for Ipv4Address
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