pub struct WireChildCall {
pub context: [u8; 32],
pub generation_context: Option<[u8; 32]>,
pub values: Vec<CallValue>,
pub operation: String,
pub payload: Vec<u8>,
pub submit: bool,
}Fields§
§context: [u8; 32]§generation_context: Option<[u8; 32]>§values: Vec<CallValue>§operation: String§payload: Vec<u8>§submit: boolImplementations§
Source§impl WireChildCall
impl WireChildCall
Sourcepub fn payload_encoded_len(
operation: &str,
payload: usize,
generation_context: bool,
values: &[CallValue],
) -> Result<usize, WireCodecError>
pub fn payload_encoded_len( operation: &str, payload: usize, generation_context: bool, values: &[CallValue], ) -> Result<usize, WireCodecError>
Counts a Child envelope with its actual portable values and payload length. Context identifiers and the submit flag have fixed encoded widths.
pub fn encode(&self) -> Result<Vec<u8>, WireCodecError>
pub fn decode(bytes: &[u8]) -> Result<Self, WireCodecError>
Trait Implementations§
Source§impl Debug for WireChildCall
impl Debug for WireChildCall
Source§impl<'de> Deserialize<'de> for WireChildCall
impl<'de> Deserialize<'de> for WireChildCall
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for WireChildCall
impl RefUnwindSafe for WireChildCall
impl Send for WireChildCall
impl Sync for WireChildCall
impl Unpin for WireChildCall
impl UnsafeUnpin for WireChildCall
impl UnwindSafe for WireChildCall
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