Struct arceos_posix_api::ctypes::sockaddr_in
source · #[repr(C)]pub struct sockaddr_in {
pub sin_family: sa_family_t,
pub sin_port: in_port_t,
pub sin_addr: in_addr,
pub sin_zero: [u8; 8],
}
Fields§
§sin_family: sa_family_t
§sin_port: in_port_t
§sin_addr: in_addr
§sin_zero: [u8; 8]
Trait Implementations§
source§impl Clone for sockaddr_in
impl Clone for sockaddr_in
source§fn clone(&self) -> sockaddr_in
fn clone(&self) -> sockaddr_in
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 sockaddr_in
impl Debug for sockaddr_in
source§impl Default for sockaddr_in
impl Default for sockaddr_in
source§fn default() -> sockaddr_in
fn default() -> sockaddr_in
Returns the “default value” for a type. Read more
source§impl From<SocketAddrV4> for sockaddr_in
Available on crate feature net
only.
impl From<SocketAddrV4> for sockaddr_in
Available on crate feature
net
only.source§fn from(addr: SocketAddrV4) -> sockaddr_in
fn from(addr: SocketAddrV4) -> sockaddr_in
Converts to this type from the input type.
source§impl From<sockaddr_in> for SocketAddrV4
Available on crate feature net
only.
impl From<sockaddr_in> for SocketAddrV4
Available on crate feature
net
only.source§fn from(addr: sockaddr_in) -> SocketAddrV4
fn from(addr: sockaddr_in) -> SocketAddrV4
Converts to this type from the input type.
impl Copy for sockaddr_in
Auto Trait Implementations§
impl RefUnwindSafe for sockaddr_in
impl Send for sockaddr_in
impl Sync for sockaddr_in
impl Unpin for sockaddr_in
impl UnwindSafe for sockaddr_in
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