pub struct BytesWeak(/* private fields */);
Expand description
A weak reference of Bytes
.
A weak reference means that it doesn’t prevent Bytes
from being dropped because
it holds a non-owning reference to the associated Bytes
object. With Self::upgrade
it
is possible to upgrade it again to Bytes
if the reference is still valid.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BytesWeak
impl RefUnwindSafe for BytesWeak
impl Send for BytesWeak
impl Sync for BytesWeak
impl Unpin for BytesWeak
impl UnwindSafe for BytesWeak
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
)