pub struct ResultType {
pub result: Term,
pub declarations: Vec<Template>,
}Expand description
A call’s concrete result type, for a client that answers it from outside the call.
Fields§
§result: TermThe result’s term.
declarations: Vec<Template>The templates it reaches, in first-reach order.
Trait Implementations§
Source§impl Clone for ResultType
impl Clone for ResultType
Source§impl Debug for ResultType
impl Debug for ResultType
Source§impl Declared for ResultType
impl Declared for ResultType
impl Eq for ResultType
Source§impl Hash for ResultType
impl Hash for ResultType
Source§impl PartialEq for ResultType
impl PartialEq for ResultType
Source§impl Shaped for ResultType
impl Shaped for ResultType
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 ResultType
Source§impl Wire for ResultType
impl Wire for ResultType
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 ResultType
impl Freeze for ResultTypewhere
*const Term is !null: Freeze,
PhantomData<Term>: Freeze,
*const u8 is !null: Freeze,
PhantomData<u64>: Freeze,
PhantomData<Template>: Freeze,
impl Move for ResultType
impl RefUnwindSafe for ResultType
impl Send for ResultType
impl Sync for ResultType
impl Unpin for ResultType
impl UnsafeUnpin for ResultTypewhere
*const Term is !null: UnsafeUnpin,
PhantomData<Term>: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<u64>: UnsafeUnpin,
PhantomData<Template>: UnsafeUnpin,
impl UnwindSafe for ResultType
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