[go: up one dir, main page]

Trait TcpConnectionExt

Source
pub trait TcpConnectionExt:
    IsA<TcpConnection>
    + Sealed
    + 'static {
    // Provided methods
    fn is_graceful_disconnect(&self) -> bool { ... }
    fn set_graceful_disconnect(&self, graceful_disconnect: bool) { ... }
    fn connect_graceful_disconnect_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F,
    ) -> SignalHandlerId { ... }
}

Provided Methods§

Source

fn is_graceful_disconnect(&self) -> bool

Source

fn set_graceful_disconnect(&self, graceful_disconnect: bool)

Source

fn connect_graceful_disconnect_notify<F: Fn(&Self) + '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§