Struct otter_api_tests::shapelib::AccountsGuard[][src]

pub struct AccountsGuard(_);

Implementations

impl AccountsGuard[src]

pub fn lock() -> AccountsGuard[src]

pub fn check<K>(&self, key: K) -> Result<AccountId, AccountNotFound> where
    K: AccountNameOrId
[src]

pub fn bulk_check<K>(&self, keys: &[K]) -> Vec<Option<AccountId>, Global>

Notable traits for Vec<u8, A>

impl<A> Write for Vec<u8, A> where
    A: Allocator
where
    K: AccountNameOrId
[src]

pub fn lookup<K>(
    &self,
    key: K
) -> Result<(&AccountRecord, AccountId), AccountNotFound> where
    K: AccountNameOrId
[src]

pub fn _lookup_mut<K>(
    &mut self,
    key: K,
    _auth: Authorisation<AccountName>
) -> Option<(&mut AccountRecord, AccountId)> where
    K: AccountNameOrId
[src]

pub fn lookup_mut_caller_must_save<K>(
    &mut self,
    key: K,
    auth: Authorisation<AccountName>
) -> Result<(&mut AccountRecord, AccountId), AccountNotFound> where
    K: AccountNameOrId
[src]

pub fn with_entry_mut<T, K, F>(
    &mut self,
    games: &mut RwLockWriteGuard<'static, RawRwLock, HashMap<Arc<InstanceName>, InstanceRef, RandomState>>,
    key: K,
    auth: Authorisation<AccountName>,
    set_access: Option<AccessRecord>,
    f: F
) -> Result<Result<T, (InternalError, T)>, MgmtError> where
    K: AccountNameOrId,
    F: FnOnce(&mut AccountRecord, AccountId) -> T, 
[src]

pub fn insert_entry(
    &mut self,
    new_record: AccountRecord,
    _auth: Authorisation<AccountName>
) -> Result<(), MgmtError>
[src]

pub fn remove_entry(
    &mut self,
    games: &mut RwLockWriteGuard<'static, RawRwLock, HashMap<Arc<InstanceName>, InstanceRef, RandomState>>,
    account: &AccountName,
    _auth: Authorisation<AccountName>
) -> Result<(), MgmtError>
[src]

pub fn list_accounts_all(
    &self,
    Authorisation<Global>
) -> Vec<Arc<AccountName>, Global>

Notable traits for Vec<u8, A>

impl<A> Write for Vec<u8, A> where
    A: Allocator
[src]

pub fn list_accounts_scope(
    &self,
    scope: &AccountScope,
    Authorisation<AccountName>
) -> Vec<Arc<AccountName>, Global>

Notable traits for Vec<u8, A>

impl<A> Write for Vec<u8, A> where
    A: Allocator
[src]

pub fn save_accounts_now(&self) -> Result<(), AccountsSaveError>[src]

Trait Implementations

impl Debug for AccountsGuard[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> Downcast for T where
    T: Any

impl<T> DowncastSync for T where
    T: Any + Send + Sync

impl<A> DynCastExt for A

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

impl<T, U> Into<U> for T where
    U: From<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<V, T> VZip<V> for T where
    V: MultiLane<T>,