Struct multiversx_sc::io::ApiOutputAdapter
source · pub struct ApiOutputAdapter<FA>where
FA: ManagedTypeApi + EndpointFinishApi,{ /* private fields */ }
Trait Implementations§
source§impl<FA> Clone for ApiOutputAdapter<FA>
impl<FA> Clone for ApiOutputAdapter<FA>
source§fn clone(&self) -> ApiOutputAdapter<FA>
fn clone(&self) -> ApiOutputAdapter<FA>
Returns a copy 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<FA> Default for ApiOutputAdapter<FA>where
FA: ManagedTypeApi + EndpointFinishApi,
impl<FA> Default for ApiOutputAdapter<FA>where
FA: ManagedTypeApi + EndpointFinishApi,
source§impl<FA> TopEncodeMultiOutput for ApiOutputAdapter<FA>where
FA: ManagedTypeApi + EndpointFinishApi,
impl<FA> TopEncodeMultiOutput for ApiOutputAdapter<FA>where
FA: ManagedTypeApi + EndpointFinishApi,
fn push_single_value<T, H>(
&mut self,
arg: &T,
h: H
) -> Result<(), H::HandledErr>where
T: TopEncode,
H: EncodeErrorHandler,
source§fn push_multi_specialized<T, H>(
&mut self,
arg: &T,
h: H
) -> Result<(), H::HandledErr>where
T: TryStaticCast,
H: EncodeErrorHandler,
fn push_multi_specialized<T, H>(
&mut self,
arg: &T,
h: H
) -> Result<(), H::HandledErr>where
T: TryStaticCast,
H: EncodeErrorHandler,
This is temporary, will remove after we get rid of SCResult for good.
source§impl<FA> TopEncodeOutput for ApiOutputAdapter<FA>where
FA: ManagedTypeApi + EndpointFinishApi,
impl<FA> TopEncodeOutput for ApiOutputAdapter<FA>where
FA: ManagedTypeApi + EndpointFinishApi,
§type NestedBuffer = ManagedBufferBuilder<FA>
type NestedBuffer = ManagedBufferBuilder<FA>
Type of
NestedEncodeOutput
that can be spawned to gather serializations of children.fn set_slice_u8(self, bytes: &[u8])
fn set_u64(self, value: u64)
fn set_i64(self, value: i64)
fn supports_specialized_type<T: TryStaticCast>() -> bool
source§fn set_specialized<T, H>(self, value: &T, h: H) -> Result<(), H::HandledErr>where
T: TryStaticCast,
H: EncodeErrorHandler,
fn set_specialized<T, H>(self, value: &T, h: H) -> Result<(), H::HandledErr>where
T: TryStaticCast,
H: EncodeErrorHandler,
Allows special handling of special types.
Also requires an alternative serialization, in case the special handling is not covered.
The alternative serialization,
else_serialization
is only called when necessary and
is normally compiled out via monomorphization.fn start_nested_encode(&self) -> Self::NestedBuffer
fn finalize_nested_encode(self, nb: Self::NestedBuffer)
Auto Trait Implementations§
impl<FA> Freeze for ApiOutputAdapter<FA>
impl<FA> RefUnwindSafe for ApiOutputAdapter<FA>where
FA: RefUnwindSafe,
impl<FA> Send for ApiOutputAdapter<FA>where
FA: Send,
impl<FA> Sync for ApiOutputAdapter<FA>where
FA: Sync,
impl<FA> Unpin for ApiOutputAdapter<FA>where
FA: Unpin,
impl<FA> UnwindSafe for ApiOutputAdapter<FA>where
FA: UnwindSafe,
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