Enum mpg123_errors

Source
#[repr(C)]
pub enum mpg123_errors {
Show 48 variants MPG123_DONE = -12, MPG123_NEW_FORMAT = -11, MPG123_NEED_MORE = -10, MPG123_ERR = -1, MPG123_OK = 0, MPG123_BAD_OUTFORMAT = 1, MPG123_BAD_CHANNEL = 2, MPG123_BAD_RATE = 3, MPG123_ERR_16TO8TABLE = 4, MPG123_BAD_PARAM = 5, MPG123_BAD_BUFFER = 6, MPG123_OUT_OF_MEM = 7, MPG123_NOT_INITIALIZED = 8, MPG123_BAD_DECODER = 9, MPG123_BAD_HANDLE = 10, MPG123_NO_BUFFERS = 11, MPG123_BAD_RVA = 12, MPG123_NO_GAPLESS = 13, MPG123_NO_SPACE = 14, MPG123_BAD_TYPES = 15, MPG123_BAD_BAND = 16, MPG123_ERR_NULL = 17, MPG123_ERR_READER = 18, MPG123_NO_SEEK_FROM_END = 19, MPG123_BAD_WHENCE = 20, MPG123_NO_TIMEOUT = 21, MPG123_BAD_FILE = 22, MPG123_NO_SEEK = 23, MPG123_NO_READER = 24, MPG123_BAD_PARS = 25, MPG123_BAD_INDEX_PAR = 26, MPG123_OUT_OF_SYNC = 27, MPG123_RESYNC_FAIL = 28, MPG123_NO_8BIT = 29, MPG123_BAD_ALIGN = 30, MPG123_NULL_BUFFER = 31, MPG123_NO_RELSEEK = 32, MPG123_NULL_POINTER = 33, MPG123_BAD_KEY = 34, MPG123_NO_INDEX = 35, MPG123_INDEX_FAIL = 36, MPG123_BAD_DECODER_SETUP = 37, MPG123_MISSING_FEATURE = 38, MPG123_BAD_VALUE = 39, MPG123_LSEEK_FAILED = 40, MPG123_BAD_CUSTOM_IO = 41, MPG123_LFS_OVERFLOW = 42, MPG123_INT_OVERFLOW = 43,
}

Variants§

§

MPG123_DONE = -12

§

MPG123_NEW_FORMAT = -11

§

MPG123_NEED_MORE = -10

§

MPG123_ERR = -1

§

MPG123_OK = 0

§

MPG123_BAD_OUTFORMAT = 1

§

MPG123_BAD_CHANNEL = 2

§

MPG123_BAD_RATE = 3

§

MPG123_ERR_16TO8TABLE = 4

§

MPG123_BAD_PARAM = 5

§

MPG123_BAD_BUFFER = 6

§

MPG123_OUT_OF_MEM = 7

§

MPG123_NOT_INITIALIZED = 8

§

MPG123_BAD_DECODER = 9

§

MPG123_BAD_HANDLE = 10

§

MPG123_NO_BUFFERS = 11

§

MPG123_BAD_RVA = 12

§

MPG123_NO_GAPLESS = 13

§

MPG123_NO_SPACE = 14

§

MPG123_BAD_TYPES = 15

§

MPG123_BAD_BAND = 16

§

MPG123_ERR_NULL = 17

§

MPG123_ERR_READER = 18

§

MPG123_NO_SEEK_FROM_END = 19

§

MPG123_BAD_WHENCE = 20

§

MPG123_NO_TIMEOUT = 21

§

MPG123_BAD_FILE = 22

§

MPG123_NO_SEEK = 23

§

MPG123_NO_READER = 24

§

MPG123_BAD_PARS = 25

§

MPG123_BAD_INDEX_PAR = 26

§

MPG123_OUT_OF_SYNC = 27

§

MPG123_RESYNC_FAIL = 28

§

MPG123_NO_8BIT = 29

§

MPG123_BAD_ALIGN = 30

§

MPG123_NULL_BUFFER = 31

§

MPG123_NO_RELSEEK = 32

§

MPG123_NULL_POINTER = 33

§

MPG123_BAD_KEY = 34

§

MPG123_NO_INDEX = 35

§

MPG123_INDEX_FAIL = 36

§

MPG123_BAD_DECODER_SETUP = 37

§

MPG123_MISSING_FEATURE = 38

§

MPG123_BAD_VALUE = 39

§

MPG123_LSEEK_FAILED = 40

§

MPG123_BAD_CUSTOM_IO = 41

§

MPG123_LFS_OVERFLOW = 42

§

MPG123_INT_OVERFLOW = 43

Trait Implementations§

Source§

impl Clone for mpg123_errors

Source§

fn clone(&self) -> mpg123_errors

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 Copy for mpg123_errors

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.