Struct scylla_cql::frame::response::result::SelfBorrowedMetadataContainer
source · pub struct SelfBorrowedMetadataContainer { /* private fields */ }
Expand description
A container that can be considered an Arc<ResultMetadata>
with an additional capability
of containing metadata in a borrowed form.
The borrow comes from the Bytes
that this container holds internally. Therefore,
the held ResultMetadata
’s lifetime is covariant with the lifetime of this container
itself.
Implementations§
source§impl SelfBorrowedMetadataContainer
impl SelfBorrowedMetadataContainer
sourcepub fn mock_empty() -> Self
pub fn mock_empty() -> Self
Creates an empty SelfBorrowedMetadataContainer.
sourcepub fn metadata(&self) -> &ResultMetadata<'_>
pub fn metadata(&self) -> &ResultMetadata<'_>
Returns a reference to the contained ResultMetadata.
Trait Implementations§
source§impl Clone for SelfBorrowedMetadataContainer
impl Clone for SelfBorrowedMetadataContainer
source§fn clone(&self) -> SelfBorrowedMetadataContainer
fn clone(&self) -> SelfBorrowedMetadataContainer
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 moreAuto Trait Implementations§
impl !Freeze for SelfBorrowedMetadataContainer
impl RefUnwindSafe for SelfBorrowedMetadataContainer
impl Send for SelfBorrowedMetadataContainer
impl Sync for SelfBorrowedMetadataContainer
impl Unpin for SelfBorrowedMetadataContainer
impl UnwindSafe for SelfBorrowedMetadataContainer
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,
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
)