pub struct PropertyBinding<T> { /* private fields */ }Expand description
A binding to a Property. Allows mutable and immutable access to the value via dereferencing.
Exclusive access is enforced by the borrow checker like any other mutable object.
PropertyBinding automatically unbinds itself when Dropped, and allowing
the binding to leave scope and be Dropped is the preferred usage.
§Safety
Cannot be cloned, as it is assumed to have an exclusive lock on the property. Thread-safe but not shareable. Send but not Sync.
Trait Implementations§
Source§impl<T: Debug> Debug for PropertyBinding<T>
impl<T: Debug> Debug for PropertyBinding<T>
Source§impl<T> Deref for PropertyBinding<T>
impl<T> Deref for PropertyBinding<T>
Source§impl<T> DerefMut for PropertyBinding<T>
impl<T> DerefMut for PropertyBinding<T>
Source§impl<T> Drop for PropertyBinding<T>
impl<T> Drop for PropertyBinding<T>
impl<T: Send> Send for PropertyBinding<T>
Auto Trait Implementations§
impl<T> Freeze for PropertyBinding<T>
impl<T> RefUnwindSafe for PropertyBinding<T>where
T: RefUnwindSafe,
impl<T> !Sync for PropertyBinding<T>
impl<T> Unpin for PropertyBinding<T>
impl<T> UnwindSafe for PropertyBinding<T>where
T: RefUnwindSafe,
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