[][src]Enum monotron_api::SizeResult

#[repr(C)]
pub enum SizeResult {
    Ok(usize),
    Error(Error),
}

Describes the result of a function which may return a numeric count of bytes read/written if everything was Ok, or return an Error if something went wrong.

This is not a standard Rust Result because they are not #[repr(C)].

Variants

Ok(usize)

Success - a size in bytes is returned

Error(Error)

Failure - an error is returned

Trait Implementations

impl Debug for SizeResult[src]

Auto Trait Implementations

impl Unpin for SizeResult

impl Send for SizeResult

impl Sync for SizeResult

Blanket Implementations

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]