pub struct VecInput { /* private fields */ }Expand description
A buffer of TLS bytes read from a socket, stored in a Vec<u8>.
Implementations§
Source§impl VecInput
impl VecInput
Sourcepub fn read(&mut self, rd: &mut dyn Read) -> Result<usize>
Available on crate feature std only.
pub fn read(&mut self, rd: &mut dyn Read) -> Result<usize>
std only.Read some bytes from rd, and add them to the buffer.
Once the buffer contains 64 kB of data, we will not read any more bytes until some
are consumed by reading from the buffer via
Connection::read_tls().
Trait Implementations§
Source§impl TlsInputBuffer for VecInput
impl TlsInputBuffer for VecInput
Source§fn slice_mut(&mut self) -> &mut [u8] ⓘ
fn slice_mut(&mut self) -> &mut [u8] ⓘ
Return the buffer which contains the received data. Read more
Source§fn received_close_notify(&mut self)
fn received_close_notify(&mut self)
Signal that the connection has received a TLS
close_notify alert. Read moreSource§fn has_seen_eof(&self) -> bool
fn has_seen_eof(&self) -> bool
Whether the buffer has seen a TCP EOF. Read more
Auto Trait Implementations§
impl Freeze for VecInput
impl RefUnwindSafe for VecInput
impl Send for VecInput
impl Sync for VecInput
impl Unpin for VecInput
impl UnsafeUnpin for VecInput
impl UnwindSafe for VecInput
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