Struct ibc::core::ics02_client::msgs::misbehaviour::MsgSubmitMisbehaviour
source · pub struct MsgSubmitMisbehaviour {
pub client_id: ClientId,
pub misbehaviour: ProtoAny,
pub signer: Signer,
}
Expand description
A type of message that submits client misbehaviour proof.
Fields
client_id: ClientId
client unique identifier
misbehaviour: ProtoAny
misbehaviour used for freezing the light client
signer: Signer
signer address
Trait Implementations
sourceimpl Clone for MsgSubmitMisbehaviour
impl Clone for MsgSubmitMisbehaviour
sourcefn clone(&self) -> MsgSubmitMisbehaviour
fn clone(&self) -> MsgSubmitMisbehaviour
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 moresourceimpl Debug for MsgSubmitMisbehaviour
impl Debug for MsgSubmitMisbehaviour
sourceimpl From<MsgSubmitMisbehaviour> for RawMsgSubmitMisbehaviour
impl From<MsgSubmitMisbehaviour> for RawMsgSubmitMisbehaviour
sourcefn from(ics_msg: MsgSubmitMisbehaviour) -> Self
fn from(ics_msg: MsgSubmitMisbehaviour) -> Self
Converts to this type from the input type.
sourceimpl Msg for MsgSubmitMisbehaviour
impl Msg for MsgSubmitMisbehaviour
type ValidationError = ValidationError
type Raw = MsgSubmitMisbehaviour
fn route(&self) -> String
sourcefn type_url(&self) -> String
fn type_url(&self) -> String
Unique type identifier for this message, to support encoding to/from
prost_types::Any
.fn to_any(self) -> Any
fn get_sign_bytes(self) -> Vec<u8> ⓘ
fn validate_basic(&self) -> Result<(), ValidationError>
sourceimpl PartialEq<MsgSubmitMisbehaviour> for MsgSubmitMisbehaviour
impl PartialEq<MsgSubmitMisbehaviour> for MsgSubmitMisbehaviour
sourcefn eq(&self, other: &MsgSubmitMisbehaviour) -> bool
fn eq(&self, other: &MsgSubmitMisbehaviour) -> bool
sourceimpl Protobuf<MsgSubmitMisbehaviour> for MsgSubmitMisbehaviour
impl Protobuf<MsgSubmitMisbehaviour> for MsgSubmitMisbehaviour
sourcefn 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
sourcefn 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
sourcefn 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
sourcefn 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
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>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). Read moresourcefn encode_length_delimited_vec(&self) -> Result<Vec<u8, Global>, Error>
fn encode_length_delimited_vec(&self) -> Result<Vec<u8, Global>, Error>
Encode with a length-delimiter to a
Vec<u8>
Protobuf-encoded message.sourcefn 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. Read morefn encode_to_hex_string(&self) -> String
impl Eq for MsgSubmitMisbehaviour
impl StructuralEq for MsgSubmitMisbehaviour
impl StructuralPartialEq for MsgSubmitMisbehaviour
Auto Trait Implementations
impl RefUnwindSafe for MsgSubmitMisbehaviour
impl Send for MsgSubmitMisbehaviour
impl Sync for MsgSubmitMisbehaviour
impl Unpin for MsgSubmitMisbehaviour
impl UnwindSafe for MsgSubmitMisbehaviour
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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