Trait sockaddr::TryToSockaddrLl
source · pub trait TryToSockaddrLl {
// Required method
fn try_to_sockaddr_ll(&self) -> Option<sockaddr_ll>;
}
Expand description
Socket addresses that can be converted to libc::sockaddr_ll
.
Required Methods§
sourcefn try_to_sockaddr_ll(&self) -> Option<sockaddr_ll>
fn try_to_sockaddr_ll(&self) -> Option<sockaddr_ll>
Converts self
to a libc::sockaddr_ll
, returning None
if self
’s
underlying socket address type is not libc::sockaddr_ll
.