[−][src]Struct brokaw::ClientConfig
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]
&mut self,
username: impl AsRef<str>,
password: impl AsRef<str>
) -> &mut Self
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]
fn clone(&self) -> ClientConfig
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for ClientConfig
[src]
impl Default for ClientConfig
[src]
fn default() -> ClientConfig
[src]
Auto Trait Implementations
impl RefUnwindSafe for ClientConfig
impl Send for ClientConfig
impl Sync for ClientConfig
impl Unpin for ClientConfig
impl UnwindSafe for ClientConfig
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,