Trait SocketServiceExt

Source
pub trait SocketServiceExt: 'static {
    // Required methods
    fn is_active(&self) -> bool;
    fn start(&self);
    fn stop(&self);
    fn connect_incoming<F: Fn(&Self, &SocketConnection, Option<&Object>) -> bool + 'static>(
        &self,
        f: F,
    ) -> SignalHandlerId;
}

Required Methods§

Source

fn is_active(&self) -> bool

Source

fn start(&self)

Source

fn stop(&self)

Source

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

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§