Enum erlang_port::ErlResult[][src]

pub enum ErlResult<T, E> {
    Ok(T),
    Error(E),
}

A result enum for replying to commands from Erlang.

This will serialize into a standard erlang result tuple of either:

  1. {:ok, result} on Ok
  2. {:error err} on Error

All replies sent via reply are converted into this enum.

Variants

Trait Implementations

impl<T: Debug, E: Debug> Debug for ErlResult<T, E>
[src]

Formats the value using the given formatter. Read more

impl<T: PartialEq, E: PartialEq> PartialEq for ErlResult<T, E>
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl<T, E> From<Result<T, E>> for ErlResult<T, E>
[src]

Performs the conversion.

Auto Trait Implementations

impl<T, E> Send for ErlResult<T, E> where
    E: Send,
    T: Send

impl<T, E> Sync for ErlResult<T, E> where
    E: Sync,
    T: Sync