Struct otter_api_tests::shapelib::InstanceGuard[][src]

pub struct InstanceGuard<'g> {
    pub c: MutexGuard<'g, RawMutex, InstanceContainer>,
    pub gref: InstanceRef,
}

Fields

c: MutexGuard<'g, RawMutex, InstanceContainer>gref: InstanceRef

Implementations

impl<'ig> InstanceGuard<'ig>[src]

pub fn player_new(
    &mut self,
    gnew: GPlayer,
    inew: IPlayer,
    account: Arc<AccountName>,
    logentry: LogEntry
) -> Result<(PlayerId, PreparedUpdateEntry, LogEntry), MgmtError>
[src]

caller is responsible for logging; threading it through proves the caller has a log entry.

pub fn check_new_nick(&mut self, new_nick: &str) -> Result<(), MgmtError>[src]

pub fn remove_clients(
    &mut self,
    players: &HashSet<PlayerId, RandomState>,
    signal: ErrorSignaledViaUpdate<PreparedUpdateEntry_Piece>
)
[src]

pub fn players_remove(
    &mut self,
    old_players_set: &HashSet<PlayerId, RandomState>
) -> Result<Vec<(Option<GPlayer>, Option<IPlayer>, PreparedUpdateEntry), Global>, InternalError>
[src]

pub fn invalidate_tokens(
    &mut self,
    player: PlayerId
) -> Result<(), InternalError>
[src]

pub fn player_access_reset(
    &mut self,
    accounts: &mut AccountsGuard,
    player: PlayerId,
    auth: Authorisation<AccountName>
) -> Result<AccessTokenReport, MgmtError>
[src]

pub fn player_access_redeliver(
    &mut self,
    accounts: &mut AccountsGuard,
    player: PlayerId,
    auth: Authorisation<AccountName>
) -> Result<AccessTokenReport, MgmtError>
[src]

pub fn modify_pieces(&mut self) -> ModifyingPieces[src]

impl<'_> InstanceGuard<'_>[src]

pub fn save_game_now(&mut self) -> Result<(), InternalError>[src]

impl<'_> InstanceGuard<'_>[src]

pub fn save_game_later(&mut self)[src]

pub fn save_game_and_access_later(&mut self)[src]

Methods from Deref<Target = Instance>

Trait Implementations

impl<'g> Debug for InstanceGuard<'g>[src]

impl<'_> Deref for InstanceGuard<'_>[src]

type Target = Instance

The resulting type after dereferencing.

impl<'_> DerefMut for InstanceGuard<'_>[src]

Auto Trait Implementations

impl<'g> !RefUnwindSafe for InstanceGuard<'g>

impl<'g> !Send for InstanceGuard<'g>

impl<'g> !Sync for InstanceGuard<'g>

impl<'g> Unpin for InstanceGuard<'g>

impl<'g> !UnwindSafe for InstanceGuard<'g>

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<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>,