Struct ibc::core::ics03_connection::connection::Counterparty
source · [−]pub struct Counterparty {
pub connection_id: Option<ConnectionId>,
/* private fields */
}Fields
connection_id: Option<ConnectionId>Implementations
sourceimpl Counterparty
impl Counterparty
pub fn new(
client_id: ClientId,
connection_id: Option<ConnectionId>,
prefix: CommitmentPrefix
) -> Self
sourcepub fn connection_id(&self) -> Option<&ConnectionId>
pub fn connection_id(&self) -> Option<&ConnectionId>
Getter for connection id.
pub fn prefix(&self) -> &CommitmentPrefix
pub fn validate_basic(&self) -> Result<(), ValidationError>
Trait Implementations
sourceimpl Clone for Counterparty
impl Clone for Counterparty
sourcefn clone(&self) -> Counterparty
fn clone(&self) -> Counterparty
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for Counterparty
impl Debug for Counterparty
sourceimpl Default for Counterparty
impl Default for Counterparty
sourcefn default() -> Counterparty
fn default() -> Counterparty
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for Counterparty
impl<'de> Deserialize<'de> for Counterparty
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl From<Counterparty> for RawCounterparty
impl From<Counterparty> for RawCounterparty
sourcefn from(value: Counterparty) -> Self
fn from(value: Counterparty) -> Self
Converts to this type from the input type.
sourceimpl Hash for Counterparty
impl Hash for Counterparty
sourceimpl PartialEq<Counterparty> for Counterparty
impl PartialEq<Counterparty> for Counterparty
sourcefn eq(&self, other: &Counterparty) -> bool
fn eq(&self, other: &Counterparty) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourceimpl Protobuf<Counterparty> for Counterparty
impl Protobuf<Counterparty> for Counterparty
sourcefn encode<B>(&self, buf: &mut B) -> Result<(), Error> where
B: BufMut,
fn encode<B>(&self, buf: &mut B) -> Result<(), Error> where
B: BufMut,
Encode into a buffer in Protobuf format. Read more
sourcefn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), Error> where
B: BufMut,
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), Error> where
B: BufMut,
Encode with a length-delimiter to a buffer in Protobuf format. Read more
sourcefn decode<B>(buf: B) -> Result<Self, Error> where
B: Buf,
fn decode<B>(buf: B) -> Result<Self, Error> where
B: Buf,
Constructor that attempts to decode an instance from a buffer. Read more
sourcefn decode_length_delimited<B>(buf: B) -> Result<Self, Error> where
B: Buf,
fn decode_length_delimited<B>(buf: B) -> Result<Self, Error> where
B: Buf,
Constructor that attempts to decode a length-delimited instance from the buffer. Read more
sourcefn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter. Read more
sourcefn encode_vec(&self) -> Result<Vec<u8, Global>, Error>
fn encode_vec(&self) -> Result<Vec<u8, Global>, Error>
Encodes into a Protobuf-encoded Vec<u8>.
sourcefn decode_vec(v: &[u8]) -> Result<Self, Error>
fn decode_vec(v: &[u8]) -> Result<Self, Error>
Constructor that attempts to decode a Protobuf-encoded instance from a
Vec<u8> (or equivalent). Read more
sourceimpl Serialize for Counterparty
impl Serialize for Counterparty
sourceimpl TryFrom<Counterparty> for Counterparty
impl TryFrom<Counterparty> for Counterparty
impl Eq for Counterparty
impl StructuralEq for Counterparty
impl StructuralPartialEq for Counterparty
Auto Trait Implementations
impl RefUnwindSafe for Counterparty
impl Send for Counterparty
impl Sync for Counterparty
impl Unpin for Counterparty
impl UnwindSafe for Counterparty
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more