Enum rtic_syntax::analyze::Ownership[][src]

pub enum Ownership {
    Owned {
        priority: u8,
    },
    CoOwned {
        priority: u8,
    },
    Contended {
        ceiling: u8,
    },
}

Resource ownership

Variants

Owned

Owned by a single task

Fields of Owned

priority: u8

Priority of the task that owns this resource

CoOwned

“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

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

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.