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.
Trait Implementations§
Source§impl Deref for UnbufferedClientConnection
 
impl Deref for UnbufferedClientConnection
Source§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