pub struct MsgChannelCloseInit {
pub port_id_on_a: PortId,
pub chan_id_on_a: ChannelId,
pub signer: Signer,
}
Expand description
Message definition for the first step in the channel close handshake (ChanCloseInit
datagram).
Per our convention, this message is sent to chain A.
Fields§
§port_id_on_a: PortId
§chan_id_on_a: ChannelId
§signer: Signer
Trait Implementations§
Source§impl<'arbitrary> Arbitrary<'arbitrary> for MsgChannelCloseInit
impl<'arbitrary> Arbitrary<'arbitrary> for MsgChannelCloseInit
Source§fn arbitrary(
u: &mut Unstructured<'arbitrary>,
) -> Result<MsgChannelCloseInit, Error>
fn arbitrary( u: &mut Unstructured<'arbitrary>, ) -> Result<MsgChannelCloseInit, Error>
Generate an arbitrary value of
Self
from the given unstructured data. Read moreSource§fn arbitrary_take_rest(
u: Unstructured<'arbitrary>,
) -> Result<MsgChannelCloseInit, Error>
fn arbitrary_take_rest( u: Unstructured<'arbitrary>, ) -> Result<MsgChannelCloseInit, Error>
Generate an arbitrary value of
Self
from the entirety of the given
unstructured data. Read moreSource§fn size_hint(depth: usize) -> (usize, Option<usize>)
fn size_hint(depth: usize) -> (usize, Option<usize>)
Get a size hint for how many bytes out of an
Unstructured
this type
needs to construct itself. Read moreSource§fn try_size_hint(
depth: usize,
) -> Result<(usize, Option<usize>), MaxRecursionReached>
fn try_size_hint( depth: usize, ) -> Result<(usize, Option<usize>), MaxRecursionReached>
Get a size hint for how many bytes out of an
Unstructured
this type
needs to construct itself. Read moreSource§impl BorshDeserialize for MsgChannelCloseInit
impl BorshDeserialize for MsgChannelCloseInit
fn deserialize_reader<__R>(
reader: &mut __R,
) -> Result<MsgChannelCloseInit, Error>where
__R: Read,
Source§fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
Deserializes this instance from a given slice of bytes.
Updates the buffer to point at the remaining bytes.
Source§fn try_from_slice(v: &[u8]) -> Result<Self, Error>
fn try_from_slice(v: &[u8]) -> Result<Self, Error>
Deserialize this instance from a slice of bytes.
fn try_from_reader<R>(reader: &mut R) -> Result<Self, Error>where
R: Read,
Source§impl BorshSerialize for MsgChannelCloseInit
impl BorshSerialize for MsgChannelCloseInit
Source§impl Clone for MsgChannelCloseInit
impl Clone for MsgChannelCloseInit
Source§fn clone(&self) -> MsgChannelCloseInit
fn clone(&self) -> MsgChannelCloseInit
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for MsgChannelCloseInit
impl Debug for MsgChannelCloseInit
Source§impl From<MsgChannelCloseInit> for ChannelMsg
impl From<MsgChannelCloseInit> for ChannelMsg
Source§fn from(value: MsgChannelCloseInit) -> ChannelMsg
fn from(value: MsgChannelCloseInit) -> ChannelMsg
Converts to this type from the input type.
Source§impl From<MsgChannelCloseInit> for MsgChannelCloseInit
impl From<MsgChannelCloseInit> for MsgChannelCloseInit
Source§fn from(domain_msg: MsgChannelCloseInit) -> MsgChannelCloseInit
fn from(domain_msg: MsgChannelCloseInit) -> MsgChannelCloseInit
Converts to this type from the input type.
Source§impl JsonSchema for MsgChannelCloseInit
impl JsonSchema for MsgChannelCloseInit
Source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref
keyword. Read moreSource§impl PartialEq for MsgChannelCloseInit
impl PartialEq for MsgChannelCloseInit
Source§impl Protobuf<MsgChannelCloseInit> for MsgChannelCloseInit
impl Protobuf<MsgChannelCloseInit> for MsgChannelCloseInit
Source§fn 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
Source§fn 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
Source§fn 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
Source§fn 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
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>
fn decode_vec(v: &[u8]) -> Result<Self, Error>
Constructor that attempts to decode a Protobuf-encoded instance from a
Vec<u8>
(or equivalent).Source§impl TryFrom<MsgChannelCloseInit> for MsgChannelCloseInit
impl TryFrom<MsgChannelCloseInit> for MsgChannelCloseInit
Source§type Error = DecodingError
type Error = DecodingError
The type returned in the event of a conversion error.
Source§fn try_from(
raw_msg: MsgChannelCloseInit,
) -> Result<MsgChannelCloseInit, <MsgChannelCloseInit as TryFrom<MsgChannelCloseInit>>::Error>
fn try_from( raw_msg: MsgChannelCloseInit, ) -> Result<MsgChannelCloseInit, <MsgChannelCloseInit as TryFrom<MsgChannelCloseInit>>::Error>
Performs the conversion.
impl Eq for MsgChannelCloseInit
impl StructuralPartialEq for MsgChannelCloseInit
Auto Trait Implementations§
impl Freeze for MsgChannelCloseInit
impl RefUnwindSafe for MsgChannelCloseInit
impl Send for MsgChannelCloseInit
impl Sync for MsgChannelCloseInit
impl Unpin for MsgChannelCloseInit
impl UnwindSafe for MsgChannelCloseInit
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