[−][src]Struct brokaw::raw::connection::ConnectionConfig
A builder for NntpConnection
Implementations
impl ConnectionConfig
[src]
pub fn new() -> ConnectionConfig
[src]
Create a new connection builder
pub fn compression(&mut self, compression: Option<Compression>) -> &mut Self
[src]
Set the compression type on the connection
pub fn tls_config(&mut self, config: Option<TlsConfig>) -> &mut Self
[src]
Configure TLS on the connection
pub fn default_tls(&mut self, domain: impl AsRef<str>) -> Result<&mut Self>
[src]
Use the default TLS implementation
pub fn read_timeout(&mut self, dur: Option<Duration>) -> &mut Self
[src]
Set the read timeout on the socket
pub fn first_line_buf_size(&mut self, s: usize) -> &mut Self
[src]
Set the size of the buffer used to read the first line
pub fn data_blocks_buf_size(&mut self, s: usize) -> &mut Self
[src]
Set the size of the buffer used to read data blocks
pub fn connect(
&self,
addr: impl ToSocketAddrs
) -> Result<(NntpConnection, RawResponse)>
[src]
&self,
addr: impl ToSocketAddrs
) -> Result<(NntpConnection, RawResponse)>
Create a connection from the config
Trait Implementations
impl Clone for ConnectionConfig
[src]
fn clone(&self) -> ConnectionConfig
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for ConnectionConfig
[src]
impl Default for ConnectionConfig
[src]
Auto Trait Implementations
impl RefUnwindSafe for ConnectionConfig
impl Send for ConnectionConfig
impl Sync for ConnectionConfig
impl Unpin for ConnectionConfig
impl UnwindSafe for ConnectionConfig
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>,