pub struct ConfigBuilder { /* private fields */ }
Expand description

The builder to create your config

This struct is what you will to use to build your configuration.

Why ?

The configuration is needed to select which types you are going to use or not and which parameters you wish to use for these types (whether it is the default parameters or some custom parameters).

To be able to configure a type, its “cargo feature kind” must be enabled (see the table).

The configuration is needed for the crate to be able to initialize and generate all the needed client and server keys as well as other internal details.

As generating these keys and details for types that you are not going to use would be a waste of time and space (both memory and disk if you serialize), generating a config is an important step.

Implementations

Create a new builder with all the data types activated with their default parameters

Create a new builder with all the data types disabled

Available on crate feature booleans only.

Enables the FheBool type with default parameters

Available on crate feature booleans only.

Enables the FheBool type with the given parameters

Available on crate feature booleans only.

Disables the FheBool type

Available on crate feature booleans only.

Creates a new boolean type with the given parameters

Returns

This returns the Encryptor of the new type

Available on crate feature shortints only.

Enables the FheUint2 type with default parameters

Available on crate feature shortints only.

Enables the FheUint2 type with the given parameters

Available on crate feature shortints only.

Disables the FheUint2 type

Available on crate feature shortints only.

Enables the FheUint3 type with default parameters

Available on crate feature shortints only.

Enables the FheUint3 type with the given parameters

Available on crate feature shortints only.

Disables the FheUint3 type

Available on crate feature shortints only.

Enables the FheUint4 type with default parameters

Available on crate feature shortints only.

Enables the FheUint4 type with the given parameters

Available on crate feature shortints only.

Disables the FheUint4 type

Available on crate feature shortints only.

Creates a new short integer type with the given parameters

Returns

This returns the Encryptor of the new type

Available on crate feature integers only.
Available on crate feature integers only.
Available on crate feature integers only.
Available on crate feature integers only.
Available on crate feature integers only.
Available on crate feature integers only.
Available on crate feature integers only.

Trait Implementations

Converts to this type from the input type.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The alignment of pointer.
The type for initializers.
Initializes a with the given initializer. Read more
Dereferences the given pointer. Read more
Mutably dereferences the given pointer. Read more
Drops the object pointed to by the given pointer. Read more
Should always be Self
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.