Struct ibc_testkit::fixtures::core::channel::PacketConfig
source · pub struct PacketConfig {
pub seq_on_a: Sequence,
pub port_id_on_a: PortId,
pub chan_id_on_a: ChannelId,
pub port_id_on_b: PortId,
pub chan_id_on_b: ChannelId,
pub data: Vec<u8>,
pub timeout_height_on_b: TimeoutHeight,
pub timeout_timestamp_on_b: Timestamp,
}Expand description
Configuration of the PacketData type for building dummy packets.
Fields§
§seq_on_a: Sequence§port_id_on_a: PortId§chan_id_on_a: ChannelId§port_id_on_b: PortId§chan_id_on_b: ChannelId§data: Vec<u8>§timeout_height_on_b: TimeoutHeight§timeout_timestamp_on_b: TimestampImplementations§
source§impl PacketConfig
impl PacketConfig
sourcepub fn builder() -> PacketConfigBuilder<((), (), (), (), (), (), (), ())>
pub fn builder() -> PacketConfigBuilder<((), (), (), (), (), (), (), ())>
Create a builder for building PacketConfig.
On the builder, call .seq_on_a(...)(optional), .port_id_on_a(...)(optional), .chan_id_on_a(...)(optional), .port_id_on_b(...)(optional), .chan_id_on_b(...)(optional), .data(...)(optional), .timeout_height_on_b(...)(optional), .timeout_timestamp_on_b(...)(optional) to set the values of the fields.
Finally, call .build() to create the instance of PacketConfig.
Trait Implementations§
source§impl Debug for PacketConfig
impl Debug for PacketConfig
source§impl From<PacketConfig> for Packet
impl From<PacketConfig> for Packet
source§fn from(config: PacketConfig) -> Self
fn from(config: PacketConfig) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for PacketConfig
impl RefUnwindSafe for PacketConfig
impl Send for PacketConfig
impl Sync for PacketConfig
impl Unpin for PacketConfig
impl UnwindSafe for PacketConfig
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