pub struct ReceivePacket { /* private fields */ }
Implementations§
source§impl ReceivePacket
impl ReceivePacket
pub fn new( packet: Packet, channel_ordering: Order, dst_connection_id: ConnectionId ) -> ReceivePacket
pub fn packet_data(&self) -> &[u8] ⓘ
pub fn timeout_height_on_b(&self) -> &TimeoutHeight
pub fn timeout_timestamp_on_b(&self) -> &Timestamp
pub fn seq_on_b(&self) -> &Sequence
pub fn port_id_on_b(&self) -> &PortId
pub fn chan_id_on_b(&self) -> &ChannelId
pub fn port_id_on_a(&self) -> &PortId
pub fn chan_id_on_a(&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 ReceivePacketwhere
PacketDataAttribute: BorshDeserialize,
TimeoutHeightAttribute: BorshDeserialize,
TimeoutTimestampAttribute: BorshDeserialize,
SequenceAttribute: BorshDeserialize,
SrcPortIdAttribute: BorshDeserialize,
SrcChannelIdAttribute: BorshDeserialize,
DstPortIdAttribute: BorshDeserialize,
DstChannelIdAttribute: BorshDeserialize,
ChannelOrderingAttribute: BorshDeserialize,
PacketConnectionIdAttribute: BorshDeserialize,
impl BorshDeserialize for ReceivePacketwhere
PacketDataAttribute: BorshDeserialize,
TimeoutHeightAttribute: BorshDeserialize,
TimeoutTimestampAttribute: BorshDeserialize,
SequenceAttribute: BorshDeserialize,
SrcPortIdAttribute: BorshDeserialize,
SrcChannelIdAttribute: BorshDeserialize,
DstPortIdAttribute: BorshDeserialize,
DstChannelIdAttribute: BorshDeserialize,
ChannelOrderingAttribute: BorshDeserialize,
PacketConnectionIdAttribute: BorshDeserialize,
fn deserialize_reader<R>(reader: &mut R) -> Result<ReceivePacket, 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 ReceivePacketwhere
PacketDataAttribute: BorshSerialize,
TimeoutHeightAttribute: BorshSerialize,
TimeoutTimestampAttribute: BorshSerialize,
SequenceAttribute: BorshSerialize,
SrcPortIdAttribute: BorshSerialize,
SrcChannelIdAttribute: BorshSerialize,
DstPortIdAttribute: BorshSerialize,
DstChannelIdAttribute: BorshSerialize,
ChannelOrderingAttribute: BorshSerialize,
PacketConnectionIdAttribute: BorshSerialize,
impl BorshSerialize for ReceivePacketwhere
PacketDataAttribute: BorshSerialize,
TimeoutHeightAttribute: BorshSerialize,
TimeoutTimestampAttribute: BorshSerialize,
SequenceAttribute: BorshSerialize,
SrcPortIdAttribute: BorshSerialize,
SrcChannelIdAttribute: BorshSerialize,
DstPortIdAttribute: BorshSerialize,
DstChannelIdAttribute: BorshSerialize,
ChannelOrderingAttribute: BorshSerialize,
PacketConnectionIdAttribute: BorshSerialize,
source§impl Clone for ReceivePacket
impl Clone for ReceivePacket
source§fn clone(&self) -> ReceivePacket
fn clone(&self) -> ReceivePacket
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 ReceivePacket
impl Debug for ReceivePacket
source§impl Decode for ReceivePacket
impl Decode for ReceivePacket
source§fn decode<__CodecInputEdqy>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<ReceivePacket, Error>where
__CodecInputEdqy: Input,
fn decode<__CodecInputEdqy>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<ReceivePacket, 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 ReceivePacket
impl<'de> Deserialize<'de> for ReceivePacket
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<ReceivePacket, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<ReceivePacket, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Encode for ReceivePacket
impl Encode for ReceivePacket
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 ReceivePacket
impl PartialEq for ReceivePacket
source§fn eq(&self, other: &ReceivePacket) -> bool
fn eq(&self, other: &ReceivePacket) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ReceivePacket
impl Serialize for ReceivePacket
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 ReceivePacket
impl TypeInfo for ReceivePacket
impl EncodeLike for ReceivePacket
impl Eq for ReceivePacket
impl StructuralPartialEq for ReceivePacket
Auto Trait Implementations§
impl Freeze for ReceivePacket
impl RefUnwindSafe for ReceivePacket
impl Send for ReceivePacket
impl Sync for ReceivePacket
impl Unpin for ReceivePacket
impl UnwindSafe for ReceivePacket
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