Trait soup::prelude::ServerExt

source ·
pub trait ServerExt: 'static {
Show 33 methods fn accept_iostream(
        &self,
        stream: &impl IsA<IOStream>,
        local_addr: Option<&impl IsA<SocketAddress>>,
        remote_addr: Option<&impl IsA<SocketAddress>>
    ) -> Result<(), Error>; fn add_auth_domain(&self, auth_domain: &impl IsA<AuthDomain>); fn add_websocket_extension(&self, extension_type: Type); fn disconnect(&self); fn listeners(&self) -> Vec<Socket>; fn tls_auth_mode(&self) -> TlsAuthenticationMode; fn tls_certificate(&self) -> Option<TlsCertificate>; fn tls_database(&self) -> Option<TlsDatabase>; fn uris(&self) -> Vec<Uri>; fn is_https(&self) -> bool; fn listen(
        &self,
        address: &impl IsA<SocketAddress>,
        options: ServerListenOptions
    ) -> Result<(), Error>; fn listen_all(
        &self,
        port: u32,
        options: ServerListenOptions
    ) -> Result<(), Error>; fn listen_local(
        &self,
        port: u32,
        options: ServerListenOptions
    ) -> Result<(), Error>; fn listen_socket(
        &self,
        socket: &impl IsA<Socket>,
        options: ServerListenOptions
    ) -> Result<(), Error>; fn pause_message(&self, msg: &ServerMessage); fn remove_auth_domain(&self, auth_domain: &impl IsA<AuthDomain>); fn remove_handler(&self, path: &str); fn remove_websocket_extension(&self, extension_type: Type); fn set_tls_auth_mode(&self, mode: TlsAuthenticationMode); fn set_tls_certificate(&self, certificate: &impl IsA<TlsCertificate>); fn set_tls_database(&self, tls_database: &impl IsA<TlsDatabase>); fn unpause_message(&self, msg: &ServerMessage); fn is_raw_paths(&self) -> bool; fn server_header(&self) -> Option<GString>; fn set_server_header(&self, server_header: Option<&str>); fn connect_request_aborted<F: Fn(&Self, &ServerMessage) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId; fn connect_request_finished<F: Fn(&Self, &ServerMessage) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId; fn connect_request_read<F: Fn(&Self, &ServerMessage) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId; fn connect_request_started<F: Fn(&Self, &ServerMessage) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId; fn connect_server_header_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId; fn connect_tls_auth_mode_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId; fn connect_tls_certificate_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId; fn connect_tls_database_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
}

Required Methods§

Implementors§