pub struct SendPacket { /* private fields */ }
Implementations§
Source§impl SendPacket
impl SendPacket
pub fn new( packet: Packet, channel_ordering: Order, src_connection_id: ConnectionId, ) -> SendPacket
pub fn packet_data(&self) -> &[u8] ⓘ
pub fn timeout_height_on_b(&self) -> &TimeoutHeight
pub fn timeout_timestamp_on_b(&self) -> &TimeoutTimestamp
pub fn seq_on_a(&self) -> &Sequence
pub fn port_id_on_a(&self) -> &PortId
pub fn chan_id_on_a(&self) -> &ChannelId
pub fn port_id_on_b(&self) -> &PortId
pub fn chan_id_on_b(&self) -> &ChannelId
pub fn channel_ordering(&self) -> &Order
pub fn conn_id_on_a(&self) -> &ConnectionId
pub fn event_type(&self) -> &str
Trait Implementations§
Source§impl BorshDeserialize for SendPacket
impl BorshDeserialize for SendPacket
fn deserialize_reader<__R>(reader: &mut __R) -> Result<SendPacket, 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 SendPacket
impl BorshSerialize for SendPacket
Source§impl Clone for SendPacket
impl Clone for SendPacket
Source§fn clone(&self) -> SendPacket
fn clone(&self) -> SendPacket
Returns a copy 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 SendPacket
impl Debug for SendPacket
Source§impl Decode for SendPacket
impl Decode for SendPacket
Source§fn decode<__CodecInputEdqy>(
__codec_input_edqy: &mut __CodecInputEdqy,
) -> Result<SendPacket, Error>where
__CodecInputEdqy: Input,
fn decode<__CodecInputEdqy>(
__codec_input_edqy: &mut __CodecInputEdqy,
) -> Result<SendPacket, Error>where
__CodecInputEdqy: Input,
Attempt to deserialise the value from input.
Source§fn decode_into<I>(
input: &mut I,
dst: &mut MaybeUninit<Self>,
) -> Result<DecodeFinished, Error>where
I: Input,
fn decode_into<I>(
input: &mut I,
dst: &mut MaybeUninit<Self>,
) -> Result<DecodeFinished, Error>where
I: Input,
Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more
Source§impl<'de> Deserialize<'de> for SendPacket
impl<'de> Deserialize<'de> for SendPacket
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<SendPacket, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<SendPacket, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Encode for SendPacket
impl Encode for SendPacket
Source§fn size_hint(&self) -> usize
fn size_hint(&self) -> usize
If possible give a hint of expected size of the encoding. Read more
Source§fn encode_to<__CodecOutputEdqy>(
&self,
__codec_dest_edqy: &mut __CodecOutputEdqy,
)
fn encode_to<__CodecOutputEdqy>( &self, __codec_dest_edqy: &mut __CodecOutputEdqy, )
Convert self to a slice and append it to the destination.
Source§fn using_encoded<R, F>(&self, f: F) -> R
fn using_encoded<R, F>(&self, f: F) -> R
Convert self to a slice and then invoke the given closure with it.
Source§fn encoded_size(&self) -> usize
fn encoded_size(&self) -> usize
Calculates the encoded size. Read more
Source§impl PartialEq for SendPacket
impl PartialEq for SendPacket
Source§impl Serialize for SendPacket
impl Serialize for SendPacket
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Source§impl TypeInfo for SendPacket
impl TypeInfo for SendPacket
impl EncodeLike for SendPacket
impl Eq for SendPacket
impl StructuralPartialEq for SendPacket
Auto Trait Implementations§
impl Freeze for SendPacket
impl RefUnwindSafe for SendPacket
impl Send for SendPacket
impl Sync for SendPacket
impl Unpin for SendPacket
impl UnwindSafe for SendPacket
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