Struct ibc::ics24_host::identifier::ChannelId[][src]

pub struct ChannelId(_);

Implementations

impl ChannelId[src]

pub fn new(counter: u64) -> Self[src]

Builds a new channel identifier. Like client and connection identifiers, channel ids are deterministically formed from two elements: a prefix prefix, and a monotonically increasing counter, separated by a dash “-”. The prefix is currently determined statically (see ChannelId::prefix()) so this method accepts a single argument, the counter.

let chan_id = ChannelId::new(27);
assert_eq!(&chan_id, "channel-27");

pub fn prefix() -> &'static str[src]

pub fn as_str(&self) -> &str[src]

Get this identifier as a borrowed &str

pub fn as_bytes(&self) -> &[u8][src]

Get this identifier as a borrowed byte slice

Trait Implementations

impl Clone for ChannelId[src]

impl Debug for ChannelId[src]

impl Default for ChannelId[src]

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

impl Display for ChannelId[src]

This implementation provides a to_string method.

impl Eq for ChannelId[src]

impl FromStr for ChannelId[src]

type Err = ValidationError

The associated error which can be returned from parsing.

impl Hash for ChannelId[src]

impl Ord for ChannelId[src]

impl PartialEq<ChannelId> for ChannelId[src]

impl PartialEq<str> for ChannelId[src]

Equality check against string literal (satisfies &ChannelId == &str).

impl PartialOrd<ChannelId> for ChannelId[src]

impl Serialize for ChannelId[src]

impl StructuralEq for ChannelId[src]

impl StructuralPartialEq for ChannelId[src]

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> ToString for T where
    T: Display + ?Sized
[src]

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]