Trait soup::prelude::ServerExt

source ·
pub trait ServerExt: IsA<Server> + Sealed + 'static {
Show 33 methods // Provided 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 { ... }
}

Provided Methods§

source

fn accept_iostream( &self, stream: &impl IsA<IOStream>, local_addr: Option<&impl IsA<SocketAddress>>, remote_addr: Option<&impl IsA<SocketAddress>>, ) -> Result<(), Error>

source

fn add_auth_domain(&self, auth_domain: &impl IsA<AuthDomain>)

source

fn add_websocket_extension(&self, extension_type: Type)

source

fn disconnect(&self)

source

fn listeners(&self) -> Vec<Socket>

source

fn tls_auth_mode(&self) -> TlsAuthenticationMode

source

fn tls_certificate(&self) -> Option<TlsCertificate>

source

fn tls_database(&self) -> Option<TlsDatabase>

source

fn uris(&self) -> Vec<Uri>

source

fn is_https(&self) -> bool

source

fn listen( &self, address: &impl IsA<SocketAddress>, options: ServerListenOptions, ) -> Result<(), Error>

source

fn listen_all( &self, port: u32, options: ServerListenOptions, ) -> Result<(), Error>

source

fn listen_local( &self, port: u32, options: ServerListenOptions, ) -> Result<(), Error>

source

fn listen_socket( &self, socket: &impl IsA<Socket>, options: ServerListenOptions, ) -> Result<(), Error>

source

fn pause_message(&self, msg: &ServerMessage)

👎Deprecated: Since 3.2
source

fn remove_auth_domain(&self, auth_domain: &impl IsA<AuthDomain>)

source

fn remove_handler(&self, path: &str)

source

fn remove_websocket_extension(&self, extension_type: Type)

source

fn set_tls_auth_mode(&self, mode: TlsAuthenticationMode)

source

fn set_tls_certificate(&self, certificate: &impl IsA<TlsCertificate>)

source

fn set_tls_database(&self, tls_database: &impl IsA<TlsDatabase>)

source

fn unpause_message(&self, msg: &ServerMessage)

👎Deprecated: Since 3.2
source

fn is_raw_paths(&self) -> bool

source

fn server_header(&self) -> Option<GString>

source

fn set_server_header(&self, server_header: Option<&str>)

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<O: IsA<Server>> ServerExt for O