Enum ReturnCode

#[repr(i32)]
pub enum ReturnCode

Variants

Ok = 0
StreamEnd = 1
NeedDict = 2
ErrNo = -1
StreamError = -2
DataError = -3
MemError = -4
BufError = -5
VersionError = -6

Implementations

impl ReturnCode

const fn error_message(self) -> *const c_char
const fn try_from_c_int(err: c_int) -> Option<Self>

Trait Implementations

impl Clone for ReturnCode

fn clone(&self) -> Self

impl Copy for ReturnCode

impl Debug for ReturnCode

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

impl Eq for ReturnCode

impl From<DeflateError> for ReturnCode

fn from(value: DeflateError) -> Self

impl From<InflateError> for ReturnCode

fn from(value: InflateError) -> Self

impl From<i32> for ReturnCode

fn from(value: i32) -> Self

impl PartialEq for ReturnCode

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

impl StructuralPartialEq for ReturnCode

Auto Trait Implementations

impl Freeze for ReturnCode

impl RefUnwindSafe for ReturnCode

impl Send for ReturnCode

impl Sync for ReturnCode

impl Unpin for ReturnCode

impl UnsafeUnpin for ReturnCode

impl UnwindSafe for ReturnCode

Blanket Implementations

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

fn type_id(&self) -> TypeId

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

fn borrow(&self) -> &T

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

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

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

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

impl<T> From<T> for ReturnCode

fn from(t: T) -> T

Returns the argument unchanged.

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

type Owned = T;
fn to_owned(&self) -> T
fn clone_into(&self, target: &mut T)

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

fn into(self) -> U

Calls U::from(self).

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

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

type Error = never;
fn try_from(value: U) -> Result<T, never>

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

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