pub struct OwnerLease<'a> { /* private fields */ }Implementations§
Source§impl<'a> OwnerLease<'a>
impl<'a> OwnerLease<'a>
Sourcepub unsafe fn new_unchecked(owner: OwnerId) -> OwnerLease<'a>
pub unsafe fn new_unchecked(owner: OwnerId) -> OwnerLease<'a>
Creates an owner lease.
§Safety
The caller must be executing on owner, local IRQ/preemption state must
prevent another owner lease from being created concurrently for the same
UART, and no higher-priority FIQ/NMI/debug path may access this UART.
pub fn owner(&self) -> OwnerId
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for OwnerLease<'a>
impl<'a> !Sync for OwnerLease<'a>
impl<'a> !UnwindSafe for OwnerLease<'a>
impl<'a> Freeze for OwnerLease<'a>
impl<'a> Send for OwnerLease<'a>
impl<'a> Unpin for OwnerLease<'a>
impl<'a> UnsafeUnpin for OwnerLease<'a>
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