pub struct Borrow<T> { /* private fields */ }
Expand description
A reference to the current value, as of the time it was returend from Receiver::borrow()
.
Can outlive both sender and receiver!
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for Borrow<T>
impl<T> !RefUnwindSafe for Borrow<T>
impl<T> !Send for Borrow<T>
impl<T> !Sync for Borrow<T>
impl<T> Unpin for Borrow<T>
impl<T> !UnwindSafe for Borrow<T>
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