Enum ppapi::CodeExperimental [-]  [+] [src]

pub enum Code {
    Ok,
    BadResource,
    BadArgument,
    WrongThread,
    InProgress,
    Failed,
    NotSupported,
    NoMemory,
    ContextLost,
    CompletionPending,
}

Variants

Ok
BadResource
BadArgument
WrongThread
InProgress
Failed
NotSupported
NoMemory
ContextLost
CompletionPending

Methods

impl Code

fn from_i32(code: i32) -> Code

fn to_i32(self) -> i32

fn to_empty_result(self) -> Result<()>

fn to_result<T, F>(self, ok: F) -> Result<T> where F: FnOnce(Code) -> T

fn is_ok(&self) -> bool

fn expect(self, msg: &str)

fn map<T>(self, take: T) -> Option<T>

Trait Implementations

impl String for Code

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

Derived Implementations

impl Copy for Code

impl PartialEq for Code

fn eq(&self, __arg_0: &Code) -> bool

fn ne(&self, __arg_0: &Code) -> bool

impl Eq for Code

fn assert_receiver_is_total_eq(&self)

impl Clone for Code

fn clone(&self) -> Code

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