TransformContextRequestExtension

Trait TransformContextRequestExtension 

Source
pub trait TransformContextRequestExtension: Sized {
    // Required methods
    fn set_transform_context(&mut self, value: TransformContext);
    fn get_transform_context(&self) -> Option<&TransformContext>;

    // Provided method
    fn transform_context(self, value: TransformContext) -> Self { ... }
}
Expand description

Add support for transform context to specify how the response will be canonicalized by the replica to maximize chances of consensus.

See the docs on HTTPs outcalls for more details.

Required Methods§

Source

fn set_transform_context(&mut self, value: TransformContext)

Set the transform context.

Source

fn get_transform_context(&self) -> Option<&TransformContext>

Retrieve the current transform context, if any.

Provided Methods§

Source

fn transform_context(self, value: TransformContext) -> Self

Convenience method to use the builder pattern.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl TransformContextRequestExtension for Builder

Source§

impl TransformContextRequestExtension for HttpRequestArgs

Source§

impl<T> TransformContextRequestExtension for Request<T>

Implementors§