Struct ibc::ics04_channel::channel::ChannelEnd [−][src]
Fields
state: State
ordering: Order
remote: Counterparty
connection_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]
state: State,
ordering: Order,
remote: Counterparty,
connection_hops: Vec<ConnectionId>,
version: String
) -> Self
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]
fn clone(&self) -> ChannelEnd
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for ChannelEnd
[src]
impl Default for ChannelEnd
[src]
impl PartialEq<ChannelEnd> for ChannelEnd
[src]
fn eq(&self, other: &ChannelEnd) -> bool
[src]
fn ne(&self, other: &ChannelEnd) -> bool
[src]
impl Protobuf<Channel> for ChannelEnd
[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 ChannelEnd
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl StructuralPartialEq for ChannelEnd
[src]
impl TryFrom<Channel> for ChannelEnd
[src]
Auto Trait Implementations
impl RefUnwindSafe for ChannelEnd
impl Send for ChannelEnd
impl Sync for ChannelEnd
impl Unpin for ChannelEnd
impl UnwindSafe for ChannelEnd
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> DynClone for T where
T: Clone,
[src]
T: Clone,
pub fn __clone_box(&self, Private) -> *mut ()
[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>,