pub struct ClientUnixSocketInfo(pub UnixSocketInfo);Available on
target_family="unix" only.Expand description
Information about the socket on the egress end.
Tuple Fields§
§0: UnixSocketInfoMethods from Deref<Target = UnixSocketInfo>§
Sourcepub fn local_addr(&self) -> Option<&UnixSocketAddress>
pub fn local_addr(&self) -> Option<&UnixSocketAddress>
Try to get the address of the local unix (domain) socket.
Sourcepub fn peer_addr(&self) -> &UnixSocketAddress
pub fn peer_addr(&self) -> &UnixSocketAddress
Get the address of the peer unix (domain) socket.
Trait Implementations§
Source§impl AsMut<UnixSocketInfo> for ClientUnixSocketInfo
impl AsMut<UnixSocketInfo> for ClientUnixSocketInfo
Source§fn as_mut(&mut self) -> &mut UnixSocketInfo
fn as_mut(&mut self) -> &mut UnixSocketInfo
Converts this type into a mutable reference of the (usually inferred) input type.
Source§impl AsRef<UnixSocketInfo> for ClientUnixSocketInfo
impl AsRef<UnixSocketInfo> for ClientUnixSocketInfo
Source§fn as_ref(&self) -> &UnixSocketInfo
fn as_ref(&self) -> &UnixSocketInfo
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl Clone for ClientUnixSocketInfo
impl Clone for ClientUnixSocketInfo
Source§fn clone(&self) -> ClientUnixSocketInfo
fn clone(&self) -> ClientUnixSocketInfo
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 ClientUnixSocketInfo
impl Debug for ClientUnixSocketInfo
Source§impl Deref for ClientUnixSocketInfo
impl Deref for ClientUnixSocketInfo
Auto Trait Implementations§
impl Freeze for ClientUnixSocketInfo
impl RefUnwindSafe for ClientUnixSocketInfo
impl Send for ClientUnixSocketInfo
impl Sync for ClientUnixSocketInfo
impl Unpin for ClientUnixSocketInfo
impl UnwindSafe for ClientUnixSocketInfo
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