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,
Source§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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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