Trait gio::prelude::SocketServiceExt
source · [−]pub trait SocketServiceExt: 'static {
fn is_active(&self) -> bool;
fn start(&self);
fn stop(&self);
fn set_active(&self, active: bool);
fn connect_incoming<F: Fn(&Self, &SocketConnection, Option<&Object>) -> bool + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_active_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
}
Required Methods
source
fn set_active(&self, active: bool)
sourcefn connect_incoming<F: Fn(&Self, &SocketConnection, Option<&Object>) -> bool + 'static>(
fn connect_incoming<F: Fn(&Self, &SocketConnection, Option<&Object>) -> bool + 'static>(
&self,
f: F
) -> SignalHandlerId
source