[][src]Struct brokaw::ClientConfig

pub struct ClientConfig { /* fields omitted */ }

Configuration for an NntpClient

Implementations

impl ClientConfig[src]

pub fn authinfo_user_pass(
    &mut self,
    username: impl AsRef<str>,
    password: impl AsRef<str>
) -> &mut Self
[src]

Perform an AUTHINFO USER/PASS authentication after connecting to the server

https://tools.ietf.org/html/rfc4643#section-2.3

pub fn group(&mut self, name: Option<impl AsRef<str>>) -> &mut Self[src]

Join a group upon connection

If this is set to None then no GROUP command will be sent when the client is initialized

pub fn default_tls(&mut self, domain: String) -> Result<&mut Self>[src]

Use the default TLS configuration

pub fn connection_config(&mut self, config: ConnectionConfig) -> &mut Self[src]

Set the configuration of the underlying NntpConnection

Note that this will override the TLS configuration set by default_tls

pub fn connect(&self, addr: impl ToSocketAddrs) -> Result<NntpClient>[src]

Resolves the configuration into a client

Trait Implementations

impl Clone for ClientConfig[src]

impl Debug for ClientConfig[src]

impl Default for ClientConfig[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.