pub struct OutboundOpaque(/* private fields */);Expand description
A payload buffer with space reserved at the front for a TLS message header.
EncodedMessage<OutboundOpaque> is named TLSPlaintext in the standard.
This outbound type owns all memory for its interior parts. It results from encryption and is used for io write.
Implementations§
Source§impl OutboundOpaque
impl OutboundOpaque
Sourcepub fn with_capacity(capacity: usize) -> Self
pub fn with_capacity(capacity: usize) -> Self
Create a new value with the given payload capacity.
(The actual capacity of the returned value will be at least HEADER_SIZE + capacity.)
Sourcepub fn extend_from_slice(&mut self, slice: &[u8])
pub fn extend_from_slice(&mut self, slice: &[u8])
Append bytes from a slice.
Sourcepub fn extend_from_chunks(&mut self, chunks: &OutboundPlain<'_>)
pub fn extend_from_chunks(&mut self, chunks: &OutboundPlain<'_>)
Append bytes from an OutboundChunks.
Trait Implementations§
Source§impl AsMut<[u8]> for OutboundOpaque
impl AsMut<[u8]> for OutboundOpaque
Source§impl AsRef<[u8]> for OutboundOpaque
impl AsRef<[u8]> for OutboundOpaque
Source§impl Clone for OutboundOpaque
impl Clone for OutboundOpaque
Source§fn clone(&self) -> OutboundOpaque
fn clone(&self) -> OutboundOpaque
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for OutboundOpaque
impl Debug for OutboundOpaque
Source§impl<'a> Extend<&'a u8> for OutboundOpaque
impl<'a> Extend<&'a u8> for OutboundOpaque
Source§fn extend<T: IntoIterator<Item = &'a u8>>(&mut self, iter: T)
fn extend<T: IntoIterator<Item = &'a u8>>(&mut self, iter: T)
Extends a collection with the contents of an iterator. Read more
Source§fn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
🔬This is a nightly-only experimental API. (
extend_one)Extends a collection with exactly one element.
Source§fn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
🔬This is a nightly-only experimental API. (
extend_one)Reserves capacity in a collection for the given number of additional elements. Read more
Source§impl From<&[u8]> for OutboundOpaque
impl From<&[u8]> for OutboundOpaque
Auto Trait Implementations§
impl Freeze for OutboundOpaque
impl RefUnwindSafe for OutboundOpaque
impl Send for OutboundOpaque
impl Sync for OutboundOpaque
impl Unpin for OutboundOpaque
impl UnwindSafe for OutboundOpaque
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