Enum ibc_relayer::light_client::AnyHeader
source · pub enum AnyHeader {
Tendermint(TendermintHeader),
}Variants§
Tendermint(TendermintHeader)
Trait Implementations§
source§impl<'de> Deserialize<'de> for AnyHeader
impl<'de> Deserialize<'de> for AnyHeader
source§fn 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
source§impl From<Header> for AnyHeader
impl From<Header> for AnyHeader
source§fn from(header: TendermintHeader) -> Self
fn from(header: TendermintHeader) -> Self
Converts to this type from the input type.
source§impl Header for AnyHeader
impl Header for AnyHeader
source§fn client_type(&self) -> ClientType
fn client_type(&self) -> ClientType
The type of client (eg. Tendermint)
source§impl PartialEq<AnyHeader> for AnyHeader
impl PartialEq<AnyHeader> for AnyHeader
source§impl Protobuf<Any> for AnyHeader
impl Protobuf<Any> for AnyHeader
source§fn encode(&self, buf: &mut Vec<u8, Global>) -> Result<(), Error>
fn encode(&self, buf: &mut Vec<u8, Global>) -> Result<(), Error>
Encode into a buffer in Protobuf format. Read more
source§fn encode_length_delimited(
&self,
buf: &mut Vec<u8, Global>
) -> Result<(), Error>
fn encode_length_delimited( &self, buf: &mut Vec<u8, Global> ) -> Result<(), Error>
Encode with a length-delimiter to a buffer in Protobuf format. Read more
source§fn decode<B>(buf: B) -> Result<Self, Error>where
B: Buf,
Self: Sized,
fn decode<B>(buf: B) -> Result<Self, Error>where B: Buf, Self: Sized,
Constructor that attempts to decode an instance from a buffer. Read more
source§fn decode_length_delimited<B>(buf: B) -> Result<Self, Error>where
B: Buf,
Self: Sized,
fn decode_length_delimited<B>(buf: B) -> Result<Self, Error>where B: Buf, Self: Sized,
Constructor that attempts to decode a length-delimited instance from
the buffer. Read more
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter. Read more
source§fn decode_vec(v: &[u8]) -> Result<Self, Error>where
Self: Sized,
fn decode_vec(v: &[u8]) -> Result<Self, Error>where Self: Sized,
Constructor that attempts to decode a Protobuf-encoded instance from a
Vec<u8> (or equivalent).source§fn encode_length_delimited_vec(&self) -> Vec<u8, Global> ⓘ
fn encode_length_delimited_vec(&self) -> Vec<u8, Global> ⓘ
Encode with a length-delimiter to a
Vec<u8> Protobuf-encoded message.source§fn decode_length_delimited_vec(v: &[u8]) -> Result<Self, Error>where
Self: Sized,
fn decode_length_delimited_vec(v: &[u8]) -> Result<Self, Error>where Self: Sized,
Constructor that attempts to decode a Protobuf-encoded instance with a
length-delimiter from a
Vec<u8> or equivalent.fn encode_to_hex_string(&self) -> String
impl Eq for AnyHeader
impl StructuralEq for AnyHeader
impl StructuralPartialEq for AnyHeader
Auto Trait Implementations§
impl RefUnwindSafe for AnyHeader
impl Send for AnyHeader
impl Sync for AnyHeader
impl Unpin for AnyHeader
impl UnwindSafe for AnyHeader
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request