Struct ibc::ics03_connection::connection::ConnectionEnd [−][src]
Implementations
impl ConnectionEnd
[src]
pub fn new(
state: State,
client_id: ClientId,
counterparty: Counterparty,
versions: Vec<Version>,
delay_period: Duration
) -> Self
[src]
state: State,
client_id: ClientId,
counterparty: Counterparty,
versions: Vec<Version>,
delay_period: Duration
) -> Self
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]
fn clone(&self) -> ConnectionEnd
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for ConnectionEnd
[src]
impl Default for ConnectionEnd
[src]
impl<'de> Deserialize<'de> for ConnectionEnd
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Eq for ConnectionEnd
[src]
impl Hash for ConnectionEnd
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl PartialEq<ConnectionEnd> for ConnectionEnd
[src]
fn eq(&self, other: &ConnectionEnd) -> bool
[src]
fn ne(&self, other: &ConnectionEnd) -> bool
[src]
impl Protobuf<ConnectionEnd> for ConnectionEnd
[src]
pub fn encode<B>(&self, buf: &mut B) -> Result<(), Error<Kind>> where
B: BufMut,
[src]
B: BufMut,
pub fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), Error<Kind>> where
B: BufMut,
[src]
B: BufMut,
pub fn decode<B>(buf: B) -> Result<Self, Error<Kind>> where
B: Buf,
[src]
B: Buf,
pub fn decode_length_delimited<B>(buf: B) -> Result<Self, Error<Kind>> where
B: Buf,
[src]
B: Buf,
pub fn encoded_len(&self) -> usize
[src]
pub fn encode_vec(&self) -> Result<Vec<u8, Global>, Error<Kind>>
[src]
pub fn decode_vec(v: &[u8]) -> Result<Self, Error<Kind>>
[src]
pub fn encode_length_delimited_vec(
&self
) -> Result<Vec<u8, Global>, Error<Kind>>
[src]
&self
) -> Result<Vec<u8, Global>, Error<Kind>>
pub fn decode_length_delimited_vec(v: &[u8]) -> Result<Self, Error<Kind>>
[src]
impl Serialize for ConnectionEnd
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl StructuralEq for ConnectionEnd
[src]
impl StructuralPartialEq for ConnectionEnd
[src]
impl TryFrom<ConnectionEnd> for ConnectionEnd
[src]
Auto Trait Implementations
impl RefUnwindSafe for ConnectionEnd
impl Send for ConnectionEnd
impl Sync for ConnectionEnd
impl Unpin for ConnectionEnd
impl UnwindSafe for ConnectionEnd
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> DynClone for T where
T: Clone,
[src]
T: Clone,
pub fn __clone_box(&self, Private) -> *mut ()
[src]
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
pub fn equivalent(&self, key: &K) -> bool
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> IntoRequest<T> for T
[src]
pub fn into_request(self) -> Request<T>
[src]
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,
pub fn vzip(self) -> V
impl<T> WithSubscriber for T
[src]
pub fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
[src]
S: Into<Dispatch>,