pub struct TypeAbiUniversalInput<T> { /* private fields */ }Expand description
Type that ignores TypeAbiFrom restrictions.
Can be used to pass values to any argument, in any endpoint, regardless of type.
The any value type can be used, as long as it can be encoded. Typically it is used with BytesValue, when converting from Mandos scenarios.
Implementations§
Trait Implementations§
Source§impl<T> TopEncode for TypeAbiUniversalInput<T>where
T: TopEncode,
impl<T> TopEncode for TypeAbiUniversalInput<T>where
T: TopEncode,
Source§fn top_encode_or_handle_err<O, H>(
&self,
output: O,
h: H,
) -> Result<(), H::HandledErr>where
O: TopEncodeOutput,
H: EncodeErrorHandler,
fn top_encode_or_handle_err<O, H>(
&self,
output: O,
h: H,
) -> Result<(), H::HandledErr>where
O: TopEncodeOutput,
H: EncodeErrorHandler,
Version of
top_encode that can handle errors as soon as they occur.
For instance in can exit immediately and make sure that if it returns, it is a success.
By not deferring error handling, this can lead to somewhat smaller bytecode.Source§fn top_encode<O>(&self, output: O) -> Result<(), EncodeError>where
O: TopEncodeOutput,
fn top_encode<O>(&self, output: O) -> Result<(), EncodeError>where
O: TopEncodeOutput,
Attempt to serialize the value to output.
Auto Trait Implementations§
impl<T> Freeze for TypeAbiUniversalInput<T>where
T: Freeze,
impl<T> RefUnwindSafe for TypeAbiUniversalInput<T>where
T: RefUnwindSafe,
impl<T> Send for TypeAbiUniversalInput<T>where
T: Send,
impl<T> Sync for TypeAbiUniversalInput<T>where
T: Sync,
impl<T> Unpin for TypeAbiUniversalInput<T>where
T: Unpin,
impl<T> UnsafeUnpin for TypeAbiUniversalInput<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for TypeAbiUniversalInput<T>where
T: 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> SCCodec for Twhere
T: TopEncode,
impl<T> SCCodec for Twhere
T: TopEncode,
fn fmt<F>(&self, f: &mut F)where
F: FormatByteReceiver,
Source§impl<T> TopEncodeMulti for Twhere
T: TopEncode,
impl<T> TopEncodeMulti for Twhere
T: TopEncode,
Source§fn multi_encode_or_handle_err<O, H>(
&self,
output: &mut O,
h: H,
) -> Result<(), <H as EncodeErrorHandler>::HandledErr>where
O: TopEncodeMultiOutput,
H: EncodeErrorHandler,
fn multi_encode_or_handle_err<O, H>(
&self,
output: &mut O,
h: H,
) -> Result<(), <H as EncodeErrorHandler>::HandledErr>where
O: TopEncodeMultiOutput,
H: EncodeErrorHandler,
Version of
top_encode that can handle errors as soon as they occur.
For instance in can exit immediately and make sure that if it returns, it is a success.
By not deferring error handling, this can lead to somewhat smaller bytecode.Source§fn multi_encode<O>(&self, output: &mut O) -> Result<(), EncodeError>where
O: TopEncodeMultiOutput,
fn multi_encode<O>(&self, output: &mut O) -> Result<(), EncodeError>where
O: TopEncodeMultiOutput,
Attempt to serialize the value to output.