Enum rtic_syntax::analyze::Ownership [−][src]
Resource ownership
Variants
Owned by a single task
Fields of Owned
priority: u8
Priority of the task that owns this resource
“Co-owned” by more than one task; all of them have the same priority
Fields of CoOwned
priority: u8
Priority of the tasks that co-own this resource
Contended by more than one task; the tasks have different priorities
Fields of Contended
ceiling: u8
Priority ceiling
Implementations
impl Ownership
[src]
pub fn needs_lock(&self, priority: u8) -> bool
[src]
Whether this resource needs to a lock at this priority level
pub fn is_owned(&self) -> bool
[src]
Whether this resource is exclusively owned
Trait Implementations
impl Clone for Ownership
[src]
impl Copy for Ownership
[src]
impl Debug for Ownership
[src]
impl PartialEq<Ownership> for Ownership
[src]
impl StructuralPartialEq for Ownership
[src]
Auto Trait Implementations
impl RefUnwindSafe for Ownership
impl Send for Ownership
impl Sync for Ownership
impl Unpin for Ownership
impl UnwindSafe for Ownership
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,