Struct rustls::client::UnbufferedClientConnection
source · pub struct UnbufferedClientConnection { /* private fields */ }
Expand description
Unbuffered version of ClientConnection
See the crate::unbuffered
module docs for more details
Implementations§
source§impl UnbufferedClientConnection
impl UnbufferedClientConnection
sourcepub fn new(
config: Arc<ClientConfig>,
name: ServerName<'static>
) -> Result<Self, Error>
pub fn new( config: Arc<ClientConfig>, name: ServerName<'static> ) -> Result<Self, Error>
Make a new ClientConnection. config
controls how we behave in the TLS protocol, name
is
the name of the server we want to talk to.
Methods from Deref<Target = UnbufferedConnectionCommon<ClientConnectionData>>§
sourcepub fn process_tls_records<'c, 'i>(
&'c mut self,
incoming_tls: &'i mut [u8]
) -> UnbufferedStatus<'c, 'i, ClientConnectionData>
pub fn process_tls_records<'c, 'i>( &'c mut self, incoming_tls: &'i mut [u8] ) -> UnbufferedStatus<'c, 'i, ClientConnectionData>
Processes the TLS records in incoming_tls
buffer until a new UnbufferedStatus
is
reached.
sourcepub fn process_tls_records<'c, 'i>(
&'c mut self,
incoming_tls: &'i mut [u8]
) -> UnbufferedStatus<'c, 'i, ServerConnectionData>
pub fn process_tls_records<'c, 'i>( &'c mut self, incoming_tls: &'i mut [u8] ) -> UnbufferedStatus<'c, 'i, ServerConnectionData>
Processes the TLS records in incoming_tls
buffer until a new UnbufferedStatus
is
reached.
Trait Implementations§
source§impl Deref for UnbufferedClientConnection
impl Deref for UnbufferedClientConnection
§type Target = UnbufferedConnectionCommon<ClientConnectionData>
type Target = UnbufferedConnectionCommon<ClientConnectionData>
The resulting type after dereferencing.
Auto Trait Implementations§
impl Freeze for UnbufferedClientConnection
impl !RefUnwindSafe for UnbufferedClientConnection
impl Send for UnbufferedClientConnection
impl Sync for UnbufferedClientConnection
impl Unpin for UnbufferedClientConnection
impl !UnwindSafe for UnbufferedClientConnection
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more