AsProtoState

Trait AsProtoState 

Source
pub trait AsProtoState {
    type Output;

    // Required method
    fn as_proto(&self) -> Self::Output;
}
Expand description

Abstraction over a state which can be transformed to the states from the medea_client_api_proto::state.

Required Associated Types§

Source

type Output

medea_client_api_proto::state into which this state can be transformed.

Required Methods§

Source

fn as_proto(&self) -> Self::Output

Converts this state to the medea_client_api_proto::state representation.

Implementors§

Source§

impl AsProtoState for medea_jason::peer::receiver::State

Source§

impl AsProtoState for medea_jason::peer::repo::State

Source§

impl AsProtoState for medea_jason::peer::sender::State

Source§

impl AsProtoState for medea_jason::peer::State