[][src]Trait codegame::PlayerConfig

pub trait PlayerConfig<G: Game> {
    pub fn name(&self) -> &str;
pub fn ui<'a>(&'a mut self) -> Box<dyn Widget + 'a>

Notable traits for Box<R, Global>

impl<R> Read for Box<R, Global> where
    R: Read + ?Sized
impl<W> Write for Box<W, Global> where
    W: Write + ?Sized
impl<F, A> Future for Box<F, A> where
    A: AllocRef,
    F: Unpin + Future + ?Sized
type Output = <F as Future>::Output;
;
pub fn ready(&mut self) -> bool;
pub fn get(&mut self) -> Box<dyn Player<G>>

Notable traits for Box<R, Global>

impl<R> Read for Box<R, Global> where
    R: Read + ?Sized
impl<W> Write for Box<W, Global> where
    W: Write + ?Sized
impl<F, A> Future for Box<F, A> where
    A: AllocRef,
    F: Unpin + Future + ?Sized
type Output = <F as Future>::Output;
;
pub fn to_options(&self) -> G::PlayerOptions; }

Required methods

pub fn name(&self) -> &str[src]

pub fn ui<'a>(&'a mut self) -> Box<dyn Widget + 'a>

Notable traits for Box<R, Global>

impl<R> Read for Box<R, Global> where
    R: Read + ?Sized
impl<W> Write for Box<W, Global> where
    W: Write + ?Sized
impl<F, A> Future for Box<F, A> where
    A: AllocRef,
    F: Unpin + Future + ?Sized
type Output = <F as Future>::Output;
[src]

pub fn ready(&mut self) -> bool[src]

pub fn get(&mut self) -> Box<dyn Player<G>>

Notable traits for Box<R, Global>

impl<R> Read for Box<R, Global> where
    R: Read + ?Sized
impl<W> Write for Box<W, Global> where
    W: Write + ?Sized
impl<F, A> Future for Box<F, A> where
    A: AllocRef,
    F: Unpin + Future + ?Sized
type Output = <F as Future>::Output;
[src]

pub fn to_options(&self) -> G::PlayerOptions[src]

Loading content...

Implementors

impl<G: Game> PlayerConfig<G> for EmptyPlayerConfig where
    G::Action: Default
[src]

impl<G: Game> PlayerConfig<G> for TcpPlayerConfig<G>[src]

Loading content...