pub struct PrefixedPayload(/* private fields */);
Implementations§
Source§impl PrefixedPayload
impl PrefixedPayload
pub fn with_capacity(capacity: usize) -> Self
pub fn extend_from_slice(&mut self, slice: &[u8])
pub fn extend_from_chunks(&mut self, chunks: &OutboundChunks<'_>)
pub fn truncate(&mut self, len: usize)
Trait Implementations§
Source§impl AsMut<[u8]> for PrefixedPayload
impl AsMut<[u8]> for PrefixedPayload
Source§impl AsRef<[u8]> for PrefixedPayload
impl AsRef<[u8]> for PrefixedPayload
Source§impl Clone for PrefixedPayload
impl Clone for PrefixedPayload
Source§fn clone(&self) -> PrefixedPayload
fn clone(&self) -> PrefixedPayload
Returns a copy 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 PrefixedPayload
impl Debug for PrefixedPayload
Source§impl<'a> Extend<&'a u8> for PrefixedPayload
impl<'a> Extend<&'a u8> for PrefixedPayload
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 PrefixedPayload
impl From<&[u8]> for PrefixedPayload
Auto Trait Implementations§
impl Freeze for PrefixedPayload
impl RefUnwindSafe for PrefixedPayload
impl Send for PrefixedPayload
impl Sync for PrefixedPayload
impl Unpin for PrefixedPayload
impl UnwindSafe for PrefixedPayload
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 24 bytes