Enum CoderResult

#[must_use]
pub enum CoderResult

Result of a (potentially partial) decode or encode operation with replacement.

Variants

InputEmpty

The input was exhausted.

If this result was returned from a call where last was true, the conversion process has completed. Otherwise, the caller should call a decode or encode method again with more input.

OutputFull

The converter cannot produce another unit of output, because the output buffer does not have enough space left.

The caller must provide more output space upon the next call and re-push the remaining input to the converter.

Trait Implementations

impl Debug for CoderResult

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

impl Eq for CoderResult

impl PartialEq for CoderResult

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

impl StructuralPartialEq for CoderResult

Auto Trait Implementations

impl Freeze for CoderResult

impl RefUnwindSafe for CoderResult

impl Send for CoderResult

impl Sync for CoderResult

impl Unpin for CoderResult

impl UnsafeUnpin for CoderResult

impl UnwindSafe for CoderResult

Blanket Implementations

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

fn type_id(&self) -> TypeId

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

fn borrow(&self) -> &T

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

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

impl<T> From<T> for CoderResult

fn from(t: T) -> T

Returns the argument unchanged.

impl<T, U> Into<U> for CoderResult 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 CoderResult where U: Into<T>,

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

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

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