Struct multiversx_sc_snippets::imports::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§fn default() -> ApiOutputAdapter<FA>
fn default() -> ApiOutputAdapter<FA>
Returns the “default value” for a type. Read more
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 as EncodeErrorHandler>::HandledErr>where
T: TopEncode,
H: EncodeErrorHandler,
source§fn push_multi_specialized<T, H>(
&mut self,
arg: &T,
h: H
) -> Result<(), <H as EncodeErrorHandler>::HandledErr>where
T: TryStaticCast,
H: EncodeErrorHandler,
fn push_multi_specialized<T, H>(
&mut self,
arg: &T,
h: H
) -> Result<(), <H as EncodeErrorHandler>::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>() -> boolwhere
T: TryStaticCast,
source§fn set_specialized<T, H>(
self,
value: &T,
h: H
) -> Result<(), <H as EncodeErrorHandler>::HandledErr>where
T: TryStaticCast,
H: EncodeErrorHandler,
fn set_specialized<T, H>(
self,
value: &T,
h: H
) -> Result<(), <H as EncodeErrorHandler>::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 ) -> <ApiOutputAdapter<FA> as TopEncodeOutput>::NestedBuffer
fn finalize_nested_encode( self, nb: <ApiOutputAdapter<FA> as TopEncodeOutput>::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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> InterpretableFrom<&T> for Twhere
T: Clone,
impl<T> InterpretableFrom<&T> for Twhere
T: Clone,
fn interpret_from(from: &T, _context: &InterpreterContext) -> T
source§impl<T> InterpretableFrom<T> for T
impl<T> InterpretableFrom<T> for T
fn interpret_from(from: T, _context: &InterpreterContext) -> T
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more