[]Struct cargo_audit::application::APPLICATION

pub struct APPLICATION { /* fields omitted */ }

Application state

Methods from Deref<Target = Lock<CargoAuditApplication>>

pub fn read(&'static self) -> Reader<A>[src]

Get the global application state, acquiring a shared, read-only lock around it which permits concurrent access by multiple readers.

If the application has not yet been initialized, calls not_loaded().

pub fn write(&'static self) -> Writer<A>[src]

Obtain an exclusive lock on the application state, allowing it to be accessed mutably.

pub fn set(&self, new_app: A)[src]

Set the global application state to the given value

Trait Implementations

impl Deref for APPLICATION

type Target = Lock<CargoAuditApplication>

The resulting type after dereferencing.

impl LazyStatic for APPLICATION

Auto Trait Implementations

Blanket Implementations

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

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

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.

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

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

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

impl<T> AsAny for T where
    T: Any
[src]