ClientError

Enum ClientError 

Source
#[repr(u32)]
pub enum ClientError {
Show 44 variants CMDERR_SUCCESS = 0, CMDERR_SYNTAX_ERROR = 1_000, CMDERR_UNKNOWN_COMMAND = 1_001, CMDERR_MISSING_PARAMETER = 1_002, CMDERR_INCOMPATIBLE_PROTOCOLS = 1_003, CMDERR_UNKNOWN_AUDIOCODEC = 1_004, CMDERR_INVALID_USERNAME = 1_005, CMDERR_INCORRECT_CHANNEL_PASSWORD = 2_001, CMDERR_INVALID_ACCOUNT = 2_002, CMDERR_MAX_SERVER_USERS_EXCEEDED = 2_003, CMDERR_MAX_CHANNEL_USERS_EXCEEDED = 2_004, CMDERR_SERVER_BANNED = 2_005, CMDERR_NOT_AUTHORIZED = 2_006, CMDERR_MAX_DISKUSAGE_EXCEEDED = 2_008, CMDERR_INCORRECT_OP_PASSWORD = 2_010, CMDERR_AUDIOCODEC_BITRATE_LIMIT_EXCEEDED = 2_011, CMDERR_MAX_LOGINS_PER_IPADDRESS_EXCEEDED = 2_012, CMDERR_MAX_CHANNELS_EXCEEDED = 2_013, CMDERR_COMMAND_FLOOD = 2_014, CMDERR_CHANNEL_BANNED = 2_015, CMDERR_MAX_FILETRANSFERS_EXCEEDED = 2_016, CMDERR_NOT_LOGGEDIN = 3_000, CMDERR_ALREADY_LOGGEDIN = 3_001, CMDERR_NOT_IN_CHANNEL = 3_002, CMDERR_ALREADY_IN_CHANNEL = 3_003, CMDERR_CHANNEL_ALREADY_EXISTS = 3_004, CMDERR_CHANNEL_NOT_FOUND = 3_005, CMDERR_USER_NOT_FOUND = 3_006, CMDERR_BAN_NOT_FOUND = 3_007, CMDERR_FILETRANSFER_NOT_FOUND = 3_008, CMDERR_OPENFILE_FAILED = 3_009, CMDERR_ACCOUNT_NOT_FOUND = 3_010, CMDERR_FILE_NOT_FOUND = 3_011, CMDERR_FILE_ALREADY_EXISTS = 3_012, CMDERR_FILESHARING_DISABLED = 3_013, CMDERR_CHANNEL_HAS_USERS = 3_015, CMDERR_LOGINSERVICE_UNAVAILABLE = 3_016, CMDERR_CHANNEL_CANNOT_BE_HIDDEN = 3_017, INTERR_SNDINPUT_FAILURE = 10_000, INTERR_SNDOUTPUT_FAILURE = 10_001, INTERR_AUDIOCODEC_INIT_FAILED = 10_002, INTERR_SPEEXDSP_INIT_FAILED = 10_003, INTERR_TTMESSAGE_QUEUE_OVERFLOW = 10_004, INTERR_SNDEFFECT_FAILURE = 10_005,
}

Variants§

§

CMDERR_SUCCESS = 0

§

CMDERR_SYNTAX_ERROR = 1_000

§

CMDERR_UNKNOWN_COMMAND = 1_001

§

CMDERR_MISSING_PARAMETER = 1_002

§

CMDERR_INCOMPATIBLE_PROTOCOLS = 1_003

§

CMDERR_UNKNOWN_AUDIOCODEC = 1_004

§

CMDERR_INVALID_USERNAME = 1_005

§

CMDERR_INCORRECT_CHANNEL_PASSWORD = 2_001

§

CMDERR_INVALID_ACCOUNT = 2_002

§

CMDERR_MAX_SERVER_USERS_EXCEEDED = 2_003

§

CMDERR_MAX_CHANNEL_USERS_EXCEEDED = 2_004

§

CMDERR_SERVER_BANNED = 2_005

§

CMDERR_NOT_AUTHORIZED = 2_006

§

CMDERR_MAX_DISKUSAGE_EXCEEDED = 2_008

§

CMDERR_INCORRECT_OP_PASSWORD = 2_010

§

CMDERR_AUDIOCODEC_BITRATE_LIMIT_EXCEEDED = 2_011

§

CMDERR_MAX_LOGINS_PER_IPADDRESS_EXCEEDED = 2_012

§

CMDERR_MAX_CHANNELS_EXCEEDED = 2_013

§

CMDERR_COMMAND_FLOOD = 2_014

§

CMDERR_CHANNEL_BANNED = 2_015

§

CMDERR_MAX_FILETRANSFERS_EXCEEDED = 2_016

§

CMDERR_NOT_LOGGEDIN = 3_000

§

CMDERR_ALREADY_LOGGEDIN = 3_001

§

CMDERR_NOT_IN_CHANNEL = 3_002

§

CMDERR_ALREADY_IN_CHANNEL = 3_003

§

CMDERR_CHANNEL_ALREADY_EXISTS = 3_004

§

CMDERR_CHANNEL_NOT_FOUND = 3_005

§

CMDERR_USER_NOT_FOUND = 3_006

§

CMDERR_BAN_NOT_FOUND = 3_007

§

CMDERR_FILETRANSFER_NOT_FOUND = 3_008

§

CMDERR_OPENFILE_FAILED = 3_009

§

CMDERR_ACCOUNT_NOT_FOUND = 3_010

§

CMDERR_FILE_NOT_FOUND = 3_011

§

CMDERR_FILE_ALREADY_EXISTS = 3_012

§

CMDERR_FILESHARING_DISABLED = 3_013

§

CMDERR_CHANNEL_HAS_USERS = 3_015

§

CMDERR_LOGINSERVICE_UNAVAILABLE = 3_016

§

CMDERR_CHANNEL_CANNOT_BE_HIDDEN = 3_017

§

INTERR_SNDINPUT_FAILURE = 10_000

§

INTERR_SNDOUTPUT_FAILURE = 10_001

§

INTERR_AUDIOCODEC_INIT_FAILED = 10_002

§

INTERR_SPEEXDSP_INIT_FAILED = 10_003

§

INTERR_TTMESSAGE_QUEUE_OVERFLOW = 10_004

§

INTERR_SNDEFFECT_FAILURE = 10_005

Implementations§

Source§

impl ClientError

Source

pub const INTERR_AUDIOPREPROCESSOR_INIT_FAILED: ClientError = ClientError::INTERR_SPEEXDSP_INIT_FAILED

Trait Implementations§

Source§

impl Clone for ClientError

Source§

fn clone(&self) -> ClientError

Returns a duplicate of the value. Read more
1.0.0 · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Debug for ClientError

Source§

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

Formats the value using the given formatter. Read more
Source§

impl Hash for ClientError

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl PartialEq for ClientError

Source§

fn eq(&self, other: &ClientError) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Copy for ClientError

Source§

impl Eq for ClientError

Source§

impl StructuralPartialEq for ClientError

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.