Trait soup::prelude::SessionExt

source ·
pub trait SessionExt: 'static {
Show 47 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_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;
}

Required Methods§

Implementors§