pub trait Packet {
// Required methods
fn payload_bytes(&self) -> &[u8] ⓘ;
fn payload_len(&self) -> u32;
fn gas_limit(&self) -> Option<GasLimit>;
fn value(&self) -> Value;
fn kind() -> DispatchKind;
}
Expand description
Message packet.
Provides common behavior for any message’s packet: accessing to payload, gas limit and value.
Required Methods§
sourcefn payload_bytes(&self) -> &[u8] ⓘ
fn payload_bytes(&self) -> &[u8] ⓘ
Packet payload bytes.
sourcefn payload_len(&self) -> u32
fn payload_len(&self) -> u32
Payload len
sourcefn kind() -> DispatchKind
fn kind() -> DispatchKind
A dispatch kind the will be generated from the packet.
Object Safety§
This trait is not object safe.