[][src]Trait gio::SocketAddressExt

pub trait SocketAddressExt: 'static {
    fn get_family(&self) -> SocketFamily;
fn get_native_size(&self) -> isize;
fn connect_property_family_notify<F: Fn(&Self) + Send + Sync + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId; }

Trait containing all SocketAddress methods.

Implementors

InetSocketAddress, SocketAddress, UnixSocketAddress

Required methods

fn get_family(&self) -> SocketFamily

Gets the socket family type of self.

Returns

the socket family type of self

fn get_native_size(&self) -> isize

Gets the size of self's native struct sockaddr. You can use this to allocate memory to pass to SocketAddressExt::to_native.

Returns

the size of the native struct sockaddr that self represents

fn connect_property_family_notify<F: Fn(&Self) + Send + Sync + 'static>(
    &self,
    f: F
) -> SignalHandlerId

Loading content...

Implementors

impl<O: IsA<SocketAddress>> SocketAddressExt for O[src]

Loading content...