[−][src]Trait hycon_rust::traits::Proto
Converts items to/from the protobuf version
Associated Types
type ProtoType
Required methods
fn to_proto(&self) -> Result<Self::ProtoType, Box<dyn Error>>
fn from_proto(prototype: &Self::ProtoType) -> Result<Self, Box<dyn Error>> where
Self: Sized,
Self: Sized,
Implementors
impl Proto for Account[src]
type ProtoType = ProtoAccount
fn to_proto(&self) -> Result<Self::ProtoType, Box<dyn Error>>[src]
fn from_proto(_prototype: &Self::ProtoType) -> Result<Self, Box<dyn Error>>[src]
impl Proto for DBState[src]
type ProtoType = ProtoDBState
fn to_proto(&self) -> Result<Self::ProtoType, Box<dyn Error>>[src]
fn from_proto(_prototype: &Self::ProtoType) -> Result<Self, Box<dyn Error>>[src]
impl Proto for NodeRef[src]
type ProtoType = ProtoNodeRef
fn to_proto(&self) -> Result<Self::ProtoType, Box<dyn Error>>[src]
fn from_proto(_prototype: &Self::ProtoType) -> Result<Self, Box<dyn Error>>[src]
impl Proto for StateNode[src]
type ProtoType = ProtoStateNode
fn to_proto(&self) -> Result<Self::ProtoType, Box<dyn Error>>[src]
fn from_proto(_prototype: &Self::ProtoType) -> Result<Self, Box<dyn Error>>[src]
impl Proto for Block<Header, SignedTx>[src]
type ProtoType = ProtoBlock
fn to_proto(&self) -> Result<Self::ProtoType, Box<dyn Error>>[src]
fn from_proto(block: &ProtoBlock) -> Result<Self, Box<dyn Error>>[src]
impl Proto for ExodusBlock[src]
type ProtoType = ProtoBlock
fn to_proto(&self) -> Result<Self::ProtoType, Box<dyn Error>>[src]
fn from_proto(_block: &ProtoBlock) -> Result<Self, Box<dyn Error>>[src]
impl Proto for ExodusTx[src]
type ProtoType = ProtoExodusTx
fn to_proto(&self) -> Result<Self::ProtoType, Box<dyn Error>>[src]
fn from_proto(_prototype: &Self::ProtoType) -> Result<Self, Box<dyn Error>>[src]
impl Proto for GenesisBlock[src]
type ProtoType = ProtoBlock
fn to_proto(&self) -> Result<Self::ProtoType, Box<dyn Error>>[src]
fn from_proto(_prototype: &Self::ProtoType) -> Result<Self, Box<dyn Error>>[src]
impl Proto for GenesisHeader[src]
type ProtoType = ProtoGenesisHeader
fn to_proto(&self) -> Result<Self::ProtoType, Box<dyn Error>>[src]
fn from_proto(_prototype: &Self::ProtoType) -> Result<Self, Box<dyn Error>>[src]
impl Proto for GenesisTx[src]
type ProtoType = ProtoGenesisTx
fn to_proto(&self) -> Result<Self::ProtoType, Box<dyn Error>>[src]
fn from_proto(_prototype: &Self::ProtoType) -> Result<Self, Box<dyn Error>>[src]
impl Proto for Header[src]
type ProtoType = ProtoBlockHeader
fn to_proto(&self) -> Result<Self::ProtoType, Box<dyn Error>>[src]
fn from_proto(prototype: &Self::ProtoType) -> Result<Self, Box<dyn Error>>[src]
impl Proto for SignedGenesisTx[src]
type ProtoType = ProtoGenesisSignedTx
fn to_proto(&self) -> Result<Self::ProtoType, Box<dyn Error>>[src]
fn from_proto(_prototype: &Self::ProtoType) -> Result<Self, Box<dyn Error>>[src]
impl Proto for SignedTx[src]
type ProtoType = ProtoSignedTx
fn to_proto(&self) -> Result<ProtoSignedTx, Box<dyn Error>>[src]
fn from_proto(_prototype: &Self::ProtoType) -> Result<Self, Box<dyn Error>>[src]
impl Proto for Tx[src]
type ProtoType = ProtoTx
fn to_proto(&self) -> Result<Self::ProtoType, Box<dyn Error>>[src]
fn from_proto(_prototype: &Self::ProtoType) -> Result<Self, Box<dyn Error>>[src]
impl Proto for NetworkMessage[src]
type ProtoType = ProtoNetwork
fn to_proto(&self) -> Result<Self::ProtoType, Box<dyn Error>>[src]
fn from_proto(prototype: &ProtoNetwork) -> Result<Self, Box<dyn Error>>[src]
impl Proto for Tip[src]
type ProtoType = GetTipReturn
fn to_proto(&self) -> Result<Self::ProtoType, Box<dyn Error>>[src]
fn from_proto(prototype: &Self::ProtoType) -> Result<Self, Box<dyn Error>>[src]
impl<HeaderType> Proto for Meta<HeaderType> where
HeaderType: BlockHeader + Clone + Proto + Encode, [src]
HeaderType: BlockHeader + Clone + Proto + Encode,