[][src]Trait gio::prelude::SocketListenerExt

pub trait SocketListenerExt: 'static {
    fn accept<P: IsA<Cancellable>>(
        &self,
        cancellable: Option<&P>
    ) -> Result<(SocketConnection, Option<Object>), Error>;
fn accept_socket<P: IsA<Cancellable>>(
        &self,
        cancellable: Option<&P>
    ) -> Result<(Socket, Option<Object>), Error>;
fn add_address<P: IsA<SocketAddress>, Q: IsA<Object>>(
        &self,
        address: &P,
        type_: SocketType,
        protocol: SocketProtocol,
        source_object: Option<&Q>
    ) -> Result<SocketAddress, Error>;
fn add_any_inet_port<P: IsA<Object>>(
        &self,
        source_object: Option<&P>
    ) -> Result<u16, Error>;
fn add_inet_port<P: IsA<Object>>(
        &self,
        port: u16,
        source_object: Option<&P>
    ) -> Result<(), Error>;
fn add_socket<P: IsA<Socket>, Q: IsA<Object>>(
        &self,
        socket: &P,
        source_object: Option<&Q>
    ) -> Result<(), Error>;
fn close(&self);
fn set_backlog(&self, listen_backlog: i32);
fn get_property_listen_backlog(&self) -> i32;
fn set_property_listen_backlog(&self, listen_backlog: i32);
fn connect_event<F: Fn(&Self, SocketListenerEvent, &Socket) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_property_listen_backlog_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId; }

Required methods

fn accept<P: IsA<Cancellable>>(
    &self,
    cancellable: Option<&P>
) -> Result<(SocketConnection, Option<Object>), Error>

fn accept_socket<P: IsA<Cancellable>>(
    &self,
    cancellable: Option<&P>
) -> Result<(Socket, Option<Object>), Error>

fn add_address<P: IsA<SocketAddress>, Q: IsA<Object>>(
    &self,
    address: &P,
    type_: SocketType,
    protocol: SocketProtocol,
    source_object: Option<&Q>
) -> Result<SocketAddress, Error>

fn add_any_inet_port<P: IsA<Object>>(
    &self,
    source_object: Option<&P>
) -> Result<u16, Error>

fn add_inet_port<P: IsA<Object>>(
    &self,
    port: u16,
    source_object: Option<&P>
) -> Result<(), Error>

fn add_socket<P: IsA<Socket>, Q: IsA<Object>>(
    &self,
    socket: &P,
    source_object: Option<&Q>
) -> Result<(), Error>

fn close(&self)

fn set_backlog(&self, listen_backlog: i32)

fn get_property_listen_backlog(&self) -> i32

fn set_property_listen_backlog(&self, listen_backlog: i32)

fn connect_event<F: Fn(&Self, SocketListenerEvent, &Socket) + 'static>(
    &self,
    f: F
) -> SignalHandlerId

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

Loading content...

Implementors

impl<O: IsA<SocketListener>> SocketListenerExt for O[src]

Loading content...