pub struct Ref(/* private fields */);Expand description
A retained Java object.
A global reference, so it survives the callback it arrived in and can cross
threads — the Android counterpart of Retained on Apple.
Implementations§
Trait Implementations§
impl Send for Ref
impl Sync for Ref
Auto Trait Implementations§
impl Freeze for Ref
impl RefUnwindSafe for Ref
impl Unpin for Ref
impl UnsafeUnpin for Ref
impl UnwindSafe for Ref
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