Struct otter_api_tests::shapelib::MgmtChannelForGame[][src]

pub struct MgmtChannelForGame {
    pub chan: MgmtChannel,
    pub game: InstanceName,
    pub how: MgmtGameUpdateMode,
}

Fields

chan: MgmtChannelgame: InstanceNamehow: MgmtGameUpdateMode

Implementations

impl MgmtChannelForGame[src]

pub fn alter_game(
    &mut self,
    insns: Vec<MgmtGameInstruction, Global>,
    f: Option<&mut dyn FnMut(&MgmtGameResponse)>
) -> Result<Vec<MgmtGameResponse, Global>, Error>
[src]

pub fn info(&mut self) -> Result<MgmtGameResponseGameInfo, Error>[src]

pub fn has_player(
    &mut self,
    account: &AccountName
) -> Result<Option<(PlayerId, MgmtPlayerInfo)>, Error>
[src]

pub fn list_pieces(
    &mut self
) -> Result<(Vec<MgmtGamePieceInfo, Global>, BTreeSet<String>), Error>
[src]

Methods from Deref<Target = MgmtChannel>

pub fn read<T>(&mut self) -> Result<T, MgmtChannelReadError> where
    T: DeserializeOwned
[src]

pub fn write<T>(&mut self, val: &T) -> Result<(), Error> where
    T: Serialize
[src]

pub fn cmd(&mut self, cmd: &MgmtCommand) -> Result<MgmtResponse, Error>[src]

pub fn list_items(
    &mut self,
    pat: &ItemSpec
) -> Result<Vec<ItemEnquiryData, Global>, Error>
[src]

Trait Implementations

impl Debug for MgmtChannelForGame[src]

impl Deref for MgmtChannelForGame[src]

type Target = MgmtChannel

The resulting type after dereferencing.

impl DerefMut for MgmtChannelForGame[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<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>,