Struct ibc::ics04_channel::channel::ChannelEnd[][src]

pub struct ChannelEnd {
    pub state: State,
    pub ordering: Order,
    pub remote: Counterparty,
    pub connection_hops: Vec<ConnectionId>,
    pub version: String,
}

Fields

state: Stateordering: Orderremote: Counterpartyconnection_hops: Vec<ConnectionId>version: String

Implementations

impl ChannelEnd[src]

pub fn new(
    state: State,
    ordering: Order,
    remote: Counterparty,
    connection_hops: Vec<ConnectionId>,
    version: String
) -> Self
[src]

Creates a new ChannelEnd in state Uninitialized and other fields parametrized.

pub fn set_state(&mut self, s: State)[src]

Updates the ChannelEnd to assume a new State ‘s’.

pub fn set_version(&mut self, v: String)[src]

pub fn set_counterparty_channel_id(&mut self, c: ChannelId)[src]

pub fn state(&self) -> &State[src]

pub fn ordering(&self) -> &Order[src]

pub fn counterparty(&self) -> &Counterparty[src]

pub fn connection_hops(&self) -> &Vec<ConnectionId>[src]

pub fn version(&self) -> String[src]

pub fn validate_basic(&self) -> Result<(), Error>[src]

pub fn state_matches(&self, other: &State) -> bool[src]

Helper function to compare the state of this end with another state.

pub fn order_matches(&self, other: &Order) -> bool[src]

Helper function to compare the order of this end with another order.

pub fn connection_hops_matches(&self, other: &Vec<ConnectionId>) -> bool[src]

pub fn counterparty_matches(&self, other: &Counterparty) -> bool[src]

pub fn version_matches(&self, other: &str) -> bool[src]

Trait Implementations

impl Clone for ChannelEnd[src]

impl Debug for ChannelEnd[src]

impl Default for ChannelEnd[src]

impl PartialEq<ChannelEnd> for ChannelEnd[src]

impl Protobuf<Channel> for ChannelEnd[src]

impl Serialize for ChannelEnd[src]

impl StructuralPartialEq for ChannelEnd[src]

impl TryFrom<Channel> for ChannelEnd[src]

type Error = Error<Kind>

The type returned in the event of a conversion error.

Auto Trait Implementations

Blanket Implementations

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

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

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

impl<T> DynClone for T where
    T: Clone
[src]

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

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

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

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

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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> 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<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> WithSubscriber for T[src]