pub struct BytesWeak(_);
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 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