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§

source

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.

Implementations on Foreign Types§

source§

impl TryToSockaddrLl for SockAddr

source§

fn try_to_sockaddr_ll(&self) -> Option<sockaddr_ll>

Implementors§