pub struct Call {
pub run: RunId,
pub call: CallRef,
pub tool: u64,
pub flags: Flags,
pub args: Rest,
}Expand description
A call frame’s fields.
Fields§
§run: RunIdThe host’s run id.
call: CallRefThe call’s history id, as history writes it.
tool: u64The declaration’s place in the answer to describe, from 0.
flags: FlagsWhether the call is generic, with its views, and whether it withdraws a held call.
args: RestThe arguments: each parameter’s value in declaration order at its (concrete) type.
Implementations§
Source§impl Call
impl Call
Sourcepub fn new(
run: RunId,
call: CallRef,
tool: u64,
generic: Option<&CallTypes>,
args: &[u8],
) -> Call
pub fn new( run: RunId, call: CallRef, tool: u64, generic: Option<&CallTypes>, args: &[u8], ) -> Call
The call to declaration tool of run named call, with
generic’s views for a generic one, and args; it withdraws
nothing.
Sourcepub fn withdrawing(self) -> Call
pub fn withdrawing(self) -> Call
The same call, withdrawing the held call it names.
Trait Implementations§
impl Eq for Call
Source§impl Shaped for Call
impl Shaped for Call
Source§fn write_at(
&self,
out: &mut ValueWriter<'_, '_>,
ty: &Type,
) -> Result<(), EncodeError>
fn write_at( &self, out: &mut ValueWriter<'_, '_>, ty: &Type, ) -> Result<(), EncodeError>
Source§fn read_at(
input: &mut ValueReader<'_, '_, '_>,
ty: &Type,
) -> Result<Self, DecodeError>
fn read_at( input: &mut ValueReader<'_, '_, '_>, ty: &Type, ) -> Result<Self, DecodeError>
impl StructuralPartialEq for Call
Source§impl Wire for Call
impl Wire for Call
Source§fn write_head<'a>(&'a self, _: &mut Vec<u8>, parts: &mut Vec<&'a dyn AnyWire>)
fn write_head<'a>(&'a self, _: &mut Vec<u8>, parts: &mut Vec<&'a dyn AnyWire>)
Appends the bytes it writes before its parts to
out, and pushes
its parts to parts in the order they are written after them.Source§fn open(_: &mut Reader<'_>) -> Result<Opened, DecodeError>
fn open(_: &mut Reader<'_>) -> Result<Opened, DecodeError>
Reads its head at
reader: the value itself when it has no parts,
else its parts to read and what joins them. Read moreSource§fn write(&self, out: &mut Vec<u8>)
fn write(&self, out: &mut Vec<u8>)
Appends its bytes to
out: its head, and then each part’s bytes in
order, written over a stack on the heap, so a value nested however
deep is written on a native stack of fixed size.Auto Trait Implementations§
impl Forget for Call
impl Freeze for Callwhere
*const u8 is !null: Freeze,
PhantomData<NonZero<u64>>: Freeze,
NonZero<u64>: Freeze,
PhantomData<(String, Term)>: Freeze,
*const Term is !null: Freeze,
PhantomData<Term>: Freeze,
PhantomData<u64>: Freeze,
PhantomData<Template>: Freeze,
PhantomData<u8>: Freeze,
impl Move for Call
impl RefUnwindSafe for Call
impl Send for Call
impl Sync for Call
impl Unpin for Call
impl UnsafeUnpin for Callwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<NonZero<u64>>: UnsafeUnpin,
NonZeroU64Inner: UnsafeUnpin,
PhantomData<(String, Term)>: UnsafeUnpin,
*const Term is !null: UnsafeUnpin,
PhantomData<Term>: UnsafeUnpin,
PhantomData<u64>: UnsafeUnpin,
PhantomData<Template>: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
impl UnwindSafe for Call
Blanket Implementations§
Source§impl<T> AnyWire for Twhere
T: Wire,
impl<T> AnyWire for Twhere
T: Wire,
Source§fn write_head<'a>(&'a self, out: &mut Vec<u8>, parts: &mut Vec<&'a dyn AnyWire>)
fn write_head<'a>(&'a self, out: &mut Vec<u8>, parts: &mut Vec<&'a dyn AnyWire>)
As
Wire::write_head.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