Skip to main content

SocketServiceExt

Trait SocketServiceExt 

Source
pub trait SocketServiceExt: IsA<SocketService> + 'static {
    // Provided methods
    fn is_active(&self) -> bool { ... }
    fn start(&self) { ... }
    fn stop(&self) { ... }
    fn set_active(&self, active: bool) { ... }
    fn connect_incoming<F>(&self, f: F) -> SignalHandlerId
       where F: Fn(&Self, &SocketConnection, Option<&Object>) -> bool + 'static { ... }
    fn connect_active_notify<F>(&self, f: F) -> SignalHandlerId
       where F: Fn(&Self) + 'static { ... }
}

Provided Methods§

Source

fn is_active(&self) -> bool

Source

fn start(&self)

Source

fn stop(&self)

Source

fn set_active(&self, active: bool)

Source

fn connect_incoming<F>(&self, f: F) -> SignalHandlerId
where F: Fn(&Self, &SocketConnection, Option<&Object>) -> bool + 'static,

Source

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

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§