[][src]Trait ibc::try_from_raw::TryFromRaw

pub trait TryFromRaw: Sized {
    type RawType: Message + Default;
    type Error: Into<Box<dyn StdError + Send + Sync + 'static>>;
    fn try_from(value: Self::RawType) -> Result<Self, Self::Error>;
}

TryFromRaw trait needs to implement a try_from() function and an Error type for the return of that function.

Associated Types

type RawType: Message + Default

RawType defines the prost-compiled protobuf-defined Rust struct

type Error: Into<Box<dyn StdError + Send + Sync + 'static>>

Error defines the error type returned from validation.

Loading content...

Required methods

fn try_from(value: Self::RawType) -> Result<Self, Self::Error>

try_from function will validate the incoming RawType and convert it to our domain type

Loading content...

Implementations on Foreign Types

impl TryFromRaw for Vec<String>[src]

Loading content...

Implementors

impl TryFromRaw for ConnectionEnd[src]

impl TryFromRaw for ChannelEnd[src]

type RawType = RawChannel

type Error = Error<Kind>

Loading content...