Trait soup::prelude::SessionExt

source ·
pub trait SessionExt: IsA<Session> + Sealed + 'static {
Show 50 methods // Provided methods fn abort(&self) { ... } fn add_feature(&self, feature: &impl IsA<SessionFeature>) { ... } fn add_feature_by_type(&self, feature_type: Type) { ... } fn accept_language(&self) -> Option<GString> { ... } fn accepts_language_auto(&self) -> bool { ... } fn async_result_message( &self, result: &impl IsA<AsyncResult>, ) -> Option<Message> { ... } fn feature(&self, feature_type: Type) -> Option<SessionFeature> { ... } fn feature_for_message( &self, feature_type: Type, msg: &Message, ) -> Option<SessionFeature> { ... } fn idle_timeout(&self) -> u32 { ... } fn local_address(&self) -> Option<InetSocketAddress> { ... } fn max_conns(&self) -> u32 { ... } fn max_conns_per_host(&self) -> u32 { ... } fn proxy_resolver(&self) -> Option<ProxyResolver> { ... } fn remote_connectable(&self) -> Option<SocketConnectable> { ... } fn timeout(&self) -> u32 { ... } fn tls_database(&self) -> Option<TlsDatabase> { ... } fn tls_interaction(&self) -> Option<TlsInteraction> { ... } fn user_agent(&self) -> Option<GString> { ... } fn has_feature(&self, feature_type: Type) -> bool { ... } fn preconnect_async<P: FnOnce(Result<(), Error>) + 'static>( &self, msg: &Message, io_priority: Priority, cancellable: Option<&impl IsA<Cancellable>>, callback: P, ) { ... } fn preconnect_future( &self, msg: &Message, io_priority: Priority, ) -> Pin<Box_<dyn Future<Output = Result<(), Error>> + 'static>> { ... } fn remove_feature(&self, feature: &impl IsA<SessionFeature>) { ... } fn remove_feature_by_type(&self, feature_type: Type) { ... } fn send( &self, msg: &Message, cancellable: Option<&impl IsA<Cancellable>>, ) -> Result<InputStream, Error> { ... } fn send_and_read( &self, msg: &Message, cancellable: Option<&impl IsA<Cancellable>>, ) -> Result<Bytes, Error> { ... } fn send_and_read_async<P: FnOnce(Result<Bytes, Error>) + 'static>( &self, msg: &Message, io_priority: Priority, cancellable: Option<&impl IsA<Cancellable>>, callback: P, ) { ... } fn send_and_read_future( &self, msg: &Message, io_priority: Priority, ) -> Pin<Box_<dyn Future<Output = Result<Bytes, Error>> + 'static>> { ... } fn send_and_splice( &self, msg: &Message, out_stream: &impl IsA<OutputStream>, flags: OutputStreamSpliceFlags, cancellable: Option<&impl IsA<Cancellable>>, ) -> Result<isize, Error> { ... } fn send_and_splice_async<P: FnOnce(Result<isize, Error>) + 'static>( &self, msg: &Message, out_stream: &impl IsA<OutputStream>, flags: OutputStreamSpliceFlags, io_priority: Priority, cancellable: Option<&impl IsA<Cancellable>>, callback: P, ) { ... } fn send_and_splice_future( &self, msg: &Message, out_stream: &(impl IsA<OutputStream> + Clone + 'static), flags: OutputStreamSpliceFlags, io_priority: Priority, ) -> Pin<Box_<dyn Future<Output = Result<isize, Error>> + 'static>> { ... } fn send_async<P: FnOnce(Result<InputStream, Error>) + 'static>( &self, msg: &Message, io_priority: Priority, cancellable: Option<&impl IsA<Cancellable>>, callback: P, ) { ... } fn send_future( &self, msg: &Message, io_priority: Priority, ) -> Pin<Box_<dyn Future<Output = Result<InputStream, Error>> + 'static>> { ... } fn set_accept_language(&self, accept_language: &str) { ... } fn set_accept_language_auto(&self, accept_language_auto: bool) { ... } fn set_idle_timeout(&self, timeout: u32) { ... } fn set_proxy_resolver( &self, proxy_resolver: Option<&impl IsA<ProxyResolver>>, ) { ... } fn set_timeout(&self, timeout: u32) { ... } fn set_tls_database(&self, tls_database: Option<&impl IsA<TlsDatabase>>) { ... } fn set_tls_interaction( &self, tls_interaction: Option<&impl IsA<TlsInteraction>>, ) { ... } fn set_user_agent(&self, user_agent: &str) { ... } fn connect_request_queued<F: Fn(&Self, &Message) + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_request_unqueued<F: Fn(&Self, &Message) + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_accept_language_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_accept_language_auto_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_idle_timeout_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_proxy_resolver_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_timeout_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_tls_database_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_tls_interaction_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_user_agent_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... }
}

Provided Methods§

source

fn abort(&self)

source

fn add_feature(&self, feature: &impl IsA<SessionFeature>)

source

fn add_feature_by_type(&self, feature_type: Type)

source

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

source

fn accepts_language_auto(&self) -> bool

source

fn async_result_message( &self, result: &impl IsA<AsyncResult>, ) -> Option<Message>

source

fn feature(&self, feature_type: Type) -> Option<SessionFeature>

source

fn feature_for_message( &self, feature_type: Type, msg: &Message, ) -> Option<SessionFeature>

source

fn idle_timeout(&self) -> u32

source

fn local_address(&self) -> Option<InetSocketAddress>

source

fn max_conns(&self) -> u32

source

fn max_conns_per_host(&self) -> u32

source

fn proxy_resolver(&self) -> Option<ProxyResolver>

source

fn remote_connectable(&self) -> Option<SocketConnectable>

source

fn timeout(&self) -> u32

source

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

source

fn tls_interaction(&self) -> Option<TlsInteraction>

source

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

source

fn has_feature(&self, feature_type: Type) -> bool

source

fn preconnect_async<P: FnOnce(Result<(), Error>) + 'static>( &self, msg: &Message, io_priority: Priority, cancellable: Option<&impl IsA<Cancellable>>, callback: P, )

source

fn preconnect_future( &self, msg: &Message, io_priority: Priority, ) -> Pin<Box_<dyn Future<Output = Result<(), Error>> + 'static>>

source

fn remove_feature(&self, feature: &impl IsA<SessionFeature>)

source

fn remove_feature_by_type(&self, feature_type: Type)

source

fn send( &self, msg: &Message, cancellable: Option<&impl IsA<Cancellable>>, ) -> Result<InputStream, Error>

source

fn send_and_read( &self, msg: &Message, cancellable: Option<&impl IsA<Cancellable>>, ) -> Result<Bytes, Error>

source

fn send_and_read_async<P: FnOnce(Result<Bytes, Error>) + 'static>( &self, msg: &Message, io_priority: Priority, cancellable: Option<&impl IsA<Cancellable>>, callback: P, )

source

fn send_and_read_future( &self, msg: &Message, io_priority: Priority, ) -> Pin<Box_<dyn Future<Output = Result<Bytes, Error>> + 'static>>

source

fn send_and_splice( &self, msg: &Message, out_stream: &impl IsA<OutputStream>, flags: OutputStreamSpliceFlags, cancellable: Option<&impl IsA<Cancellable>>, ) -> Result<isize, Error>

Available on crate feature v3_4 only.
source

fn send_and_splice_async<P: FnOnce(Result<isize, Error>) + 'static>( &self, msg: &Message, out_stream: &impl IsA<OutputStream>, flags: OutputStreamSpliceFlags, io_priority: Priority, cancellable: Option<&impl IsA<Cancellable>>, callback: P, )

Available on crate feature v3_4 only.
source

fn send_and_splice_future( &self, msg: &Message, out_stream: &(impl IsA<OutputStream> + Clone + 'static), flags: OutputStreamSpliceFlags, io_priority: Priority, ) -> Pin<Box_<dyn Future<Output = Result<isize, Error>> + 'static>>

Available on crate feature v3_4 only.
source

fn send_async<P: FnOnce(Result<InputStream, Error>) + 'static>( &self, msg: &Message, io_priority: Priority, cancellable: Option<&impl IsA<Cancellable>>, callback: P, )

source

fn send_future( &self, msg: &Message, io_priority: Priority, ) -> Pin<Box_<dyn Future<Output = Result<InputStream, Error>> + 'static>>

source

fn set_accept_language(&self, accept_language: &str)

source

fn set_accept_language_auto(&self, accept_language_auto: bool)

source

fn set_idle_timeout(&self, timeout: u32)

source

fn set_proxy_resolver(&self, proxy_resolver: Option<&impl IsA<ProxyResolver>>)

source

fn set_timeout(&self, timeout: u32)

source

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

source

fn set_tls_interaction( &self, tls_interaction: Option<&impl IsA<TlsInteraction>>, )

source

fn set_user_agent(&self, user_agent: &str)

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

Object Safety§

This trait is not object safe.

Implementors§