[][src]Trait codegame::PlayerOptions

pub trait PlayerOptions<G: Game>: From<TcpPlayerOptions> + From<EmptyPlayerOptions> {
    fn get(
        &self,
        extra_data: &G::PlayerExtraData
    ) -> Pin<Box<dyn Future<Output = Result<Box<dyn Player<G>>, PlayerError>>>>

Important traits for Pin<P>

impl<P> Future for Pin<P> where
    P: Unpin + DerefMut,
    <P as Deref>::Target: Future
type Output = <<P as Deref>::Target as Future>::Output;
; }

Required methods

fn get(
    &self,
    extra_data: &G::PlayerExtraData
) -> Pin<Box<dyn Future<Output = Result<Box<dyn Player<G>>, PlayerError>>>>

Important traits for Pin<P>

impl<P> Future for Pin<P> where
    P: Unpin + DerefMut,
    <P as Deref>::Target: Future
type Output = <<P as Deref>::Target as Future>::Output;

Loading content...

Implementors

Loading content...