#[non_exhaustive]pub enum OutboundPlain<'a> {
Single(&'a [u8]),
Multiple {
chunks: &'a [&'a [u8]],
start: usize,
end: usize,
},
}Expand description
A collection of borrowed plaintext slices.
Warning: OutboundChunks does not guarantee that the simplest variant is used. Multiple can hold non fragmented or empty payloads.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Single(&'a [u8])
A single byte slice.
Contrary to Multiple, this uses a single pointer indirection
Multiple
A collection of chunks (byte slices).
Implementations§
Source§impl<'a> OutboundPlain<'a>
impl<'a> OutboundPlain<'a>
Trait Implementations§
Source§impl<'a> Clone for OutboundPlain<'a>
impl<'a> Clone for OutboundPlain<'a>
Source§fn clone(&self) -> OutboundPlain<'a>
fn clone(&self) -> OutboundPlain<'a>
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<'a> Debug for OutboundPlain<'a>
impl<'a> Debug for OutboundPlain<'a>
Auto Trait Implementations§
impl<'a> Freeze for OutboundPlain<'a>
impl<'a> RefUnwindSafe for OutboundPlain<'a>
impl<'a> Send for OutboundPlain<'a>
impl<'a> Sync for OutboundPlain<'a>
impl<'a> Unpin for OutboundPlain<'a>
impl<'a> UnwindSafe for OutboundPlain<'a>
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