Struct ps_datachunk::mbuf::MbufDataChunk
source · pub struct MbufDataChunk<'lt> { /* private fields */ }
Trait Implementations§
source§impl<'lt> Clone for MbufDataChunk<'lt>
impl<'lt> Clone for MbufDataChunk<'lt>
source§fn clone(&self) -> MbufDataChunk<'lt>
fn clone(&self) -> MbufDataChunk<'lt>
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<'lt> DataChunkTrait for MbufDataChunk<'lt>
impl<'lt> DataChunkTrait for MbufDataChunk<'lt>
fn data_ref(&self) -> &[u8] ⓘ
fn hash_ref(&self) -> &[u8] ⓘ
fn hash(&self) -> HashCow<'lt>
fn encrypt(&self, compressor: &Compressor) -> Result<EncryptedDataChunk>
fn decrypt(&self, key: &[u8], compressor: &Compressor) -> Result<OwnedDataChunk>
fn to_datachunk(&self) -> DataChunk<'_>
fn align(&self) -> AlignedDataChunk
fn borrow(&self) -> BorrowedDataChunk<'_>
fn to_owned(&self) -> OwnedDataChunk
fn try_as<T: Archive>(&self) -> Result<TypedDataChunk<'_, T>>
source§impl<'lt> From<MbufDataChunk<'lt>> for DataChunk<'lt>
impl<'lt> From<MbufDataChunk<'lt>> for DataChunk<'lt>
source§fn from(chunk: MbufDataChunk<'lt>) -> Self
fn from(chunk: MbufDataChunk<'lt>) -> Self
Converts to this type from the input type.
impl<'lt> Copy for MbufDataChunk<'lt>
Auto Trait Implementations§
impl<'lt> Freeze for MbufDataChunk<'lt>
impl<'lt> RefUnwindSafe for MbufDataChunk<'lt>
impl<'lt> Send for MbufDataChunk<'lt>
impl<'lt> Sync for MbufDataChunk<'lt>
impl<'lt> Unpin for MbufDataChunk<'lt>
impl<'lt> UnwindSafe for MbufDataChunk<'lt>
Blanket Implementations§
source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<F, W, T, D> Deserialize<With<T, W>, D> for F
impl<F, W, T, D> Deserialize<With<T, W>, D> for F
source§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
source§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Gets the layout of the type.