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,

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

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

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

impl<T> From<T> for ReturnCode

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

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

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

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