pub struct ReplyPacket { /* private fields */ }Expand description
Reply message packet.
This structure is preparation for future reply message sending. Has no message id.
Implementations§
Source§impl ReplyPacket
impl ReplyPacket
Sourcepub fn new_with_gas(payload: Payload, gas_limit: GasLimit, value: Value) -> Self
pub fn new_with_gas(payload: Payload, gas_limit: GasLimit, value: Value) -> Self
Create new manual ReplyPacket with gas.
Sourcepub fn maybe_with_gas(
payload: Payload,
gas_limit: Option<GasLimit>,
value: Value,
) -> Self
pub fn maybe_with_gas( payload: Payload, gas_limit: Option<GasLimit>, value: Value, ) -> Self
Create new manual ReplyPacket with optional gas.
Trait Implementations§
Source§impl Clone for ReplyPacket
impl Clone for ReplyPacket
Source§fn clone(&self) -> ReplyPacket
fn clone(&self) -> ReplyPacket
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 ReplyPacket
impl Debug for ReplyPacket
Source§impl Packet for ReplyPacket
impl Packet for ReplyPacket
Source§fn payload_bytes(&self) -> &[u8]
fn payload_bytes(&self) -> &[u8]
Packet payload bytes.
Source§fn payload_len(&self) -> u32
fn payload_len(&self) -> u32
Payload len
Source§fn kind() -> DispatchKind
fn kind() -> DispatchKind
A dispatch kind the will be generated from the packet.
Source§impl PartialEq for ReplyPacket
impl PartialEq for ReplyPacket
impl Eq for ReplyPacket
impl StructuralPartialEq for ReplyPacket
Auto Trait Implementations§
impl Freeze for ReplyPacket
impl RefUnwindSafe for ReplyPacket
impl Send for ReplyPacket
impl Sync for ReplyPacket
impl Unpin for ReplyPacket
impl UnwindSafe for ReplyPacket
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