Enum dasi::model::PossibleServer [] [src]

pub enum PossibleServer<T> {
    Offline(ServerId),
    Online(T),
}

A server which may be unavailable

Variants

Offline

An offline server, the ID of which is known

Online

An online server, for which more information is available

Methods

impl PossibleServer<LiveServer>

fn decode(value: Value) -> Result<Self>

fn id(&self) -> ServerId

impl PossibleServer<Server>

fn decode(value: Value) -> Result<Self>

fn id(&self) -> ServerId

Trait Implementations

Derived Implementations

impl<T: Clone> Clone for PossibleServer<T>

fn clone(&self) -> PossibleServer<T>

1.0.0fn clone_from(&mut self, source: &Self)

impl<T: Debug> Debug for PossibleServer<T>

fn fmt(&self, __arg_0: &mut Formatter) -> Result