Skip to content

Commit

Permalink
socketaddr: document conversion using From.
Browse files Browse the repository at this point in the history
  • Loading branch information
nmathewson committed Sep 25, 2024
1 parent beab0c2 commit f3c5bd3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tokio/src/net/unix/socketaddr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@ use std::fmt;
use std::path::Path;

/// An address associated with a Tokio Unix socket.
///
/// This type is a think wrapper around
/// [`std::os::unix::net::SocketAddr`];
/// you can use [`From`](std::convert::From) to wrap and unwrap
/// instances of [`std::os::unix::net::SocketAddr`] as this type.
pub struct SocketAddr(pub(super) std::os::unix::net::SocketAddr);

impl SocketAddr {
Expand Down

0 comments on commit f3c5bd3

Please sign in to comment.