Struct ibc::ics03_connection::connection::ConnectionEnd[][src]

pub struct ConnectionEnd { /* fields omitted */ }

Implementations

impl ConnectionEnd[src]

pub fn new(
    state: State,
    client_id: ClientId,
    counterparty: Counterparty,
    versions: Vec<Version>,
    delay_period: Duration
) -> Self
[src]

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

Getter for the state of this connection end.

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

Setter for the state field.

pub fn set_counterparty(&mut self, new_cparty: Counterparty)[src]

Setter for the counterparty field.

pub fn set_version(&mut self, new_version: Version)[src]

Setter for the version field.

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

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

pub fn client_id_matches(&self, other: &ClientId) -> bool[src]

Helper function to compare the client id of this end with another client identifier.

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

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

pub fn client_id(&self) -> &ClientId[src]

Getter for the client id on the local party of this connection end.

pub fn versions(&self) -> Vec<Version>[src]

Getter for the list of versions in this connection end.

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

Getter for the counterparty. Returns a clone().

pub fn delay_period(&self) -> Duration[src]

Getter for the delay_period field. This represents the duration, at minimum, to delay the sending of a packet after the client update for that packet has been submitted.

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

TODO: Clean this up, probably not necessary.

Trait Implementations

impl Clone for ConnectionEnd[src]

impl Debug for ConnectionEnd[src]

impl Default for ConnectionEnd[src]

impl<'de> Deserialize<'de> for ConnectionEnd[src]

impl Eq for ConnectionEnd[src]

impl Hash for ConnectionEnd[src]

impl PartialEq<ConnectionEnd> for ConnectionEnd[src]

impl Protobuf<ConnectionEnd> for ConnectionEnd[src]

impl Serialize for ConnectionEnd[src]

impl StructuralEq for ConnectionEnd[src]

impl StructuralPartialEq for ConnectionEnd[src]

impl TryFrom<ConnectionEnd> for ConnectionEnd[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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

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

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[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]