#[repr(C)]pub struct OwnedBytes {
pub owner: *mut c_void,
pub bytes: Bytes,
}Expand description
Engine-owned allocation. Only release(owner), exactly once, may destroy it. The view stays readable until release. None of these fields may be modified to construct a different allocation; even a zero-length owned view is released.
Fields§
§owner: *mut c_voidOpaque allocation token returned by the engine; release once through that engine.
bytes: BytesReadable result view whose lifetime ends when owner is released.
Implementations§
Source§impl OwnedBytes
impl OwnedBytes
Trait Implementations§
Source§impl Clone for OwnedBytes
impl Clone for OwnedBytes
Source§fn clone(&self) -> OwnedBytes
fn clone(&self) -> OwnedBytes
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for OwnedBytes
Auto Trait Implementations§
impl !Send for OwnedBytes
impl !Sync for OwnedBytes
impl Freeze for OwnedBytes
impl RefUnwindSafe for OwnedBytes
impl Unpin for OwnedBytes
impl UnsafeUnpin for OwnedBytes
impl UnwindSafe for OwnedBytes
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