pub struct Retained(/* private fields */);Expand description
A +1 Objective-C reference, released on drop.
Delegate callbacks hand over objects they own; anything kept past the end of the callback — a peripheral we are about to connect to, the characteristic a pending read belongs to — has to be retained, and the retain has to be balanced from Rust’s side rather than by an autorelease pool that drained when the callback returned.
Implementations§
Trait Implementations§
impl Eq for Retained
impl Send for Retained
impl Sync for Retained
Auto Trait Implementations§
impl Forget for Retained
impl Freeze for Retained
impl Move for Retained
impl RefUnwindSafe for Retained
impl Unpin for Retained
impl UnsafeUnpin for Retained
impl UnwindSafe for Retained
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