Trait AsyncRwLock

Source
pub trait AsyncRwLock {
    type ReadGuard: for<'a> PlugLifetime<'a>;
    type WriteGuard: for<'a> PlugLifetime<'a>;

    // Required methods
    fn read(&self) -> PluggedAsyncGuard<'_, Self::ReadGuard>;
    fn write(&self) -> PluggedAsyncGuard<'_, Self::WriteGuard>;
}

Required Associated Types§

Source

type ReadGuard: for<'a> PlugLifetime<'a>

Source

type WriteGuard: for<'a> PlugLifetime<'a>

Required Methods§

Source

fn read(&self) -> PluggedAsyncGuard<'_, Self::ReadGuard>

Source

fn write(&self) -> PluggedAsyncGuard<'_, Self::WriteGuard>

Implementors§