pub struct Config { /* private fields */ }Available on crate feature
integer only.Expand description
The config type
Implementations§
source§impl Config
impl Config
pub fn public_key_encryption_parameters( &self, ) -> Result<CompactPublicKeyEncryptionParameters, Error>
Trait Implementations§
source§impl<'de> Deserialize<'de> for Config
impl<'de> Deserialize<'de> for Config
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl From<ConfigBuilder> for Config
impl From<ConfigBuilder> for Config
source§fn from(builder: ConfigBuilder) -> Self
fn from(builder: ConfigBuilder) -> Self
Converts to this type from the input type.
source§impl Unversionize for Configwhere
ConfigVersions: VersionsDispatch<Self>,
impl Unversionize for Configwhere
ConfigVersions: VersionsDispatch<Self>,
source§fn unversionize(
versioned: Self::VersionedOwned,
) -> Result<Self, UnversionizeError>
fn unversionize( versioned: Self::VersionedOwned, ) -> Result<Self, UnversionizeError>
Creates an object from a versioned enum, and eventually upgrades from previous
variants.
source§impl UnversionizeVec for Configwhere
ConfigVersions: VersionsDispatch<Self>,
impl UnversionizeVec for Configwhere
ConfigVersions: VersionsDispatch<Self>,
fn unversionize_vec( versioned: Self::VersionedVec, ) -> Result<Vec<Self>, UnversionizeError>
source§impl Version for Configwhere
IntegerConfig: Versionize + Unversionize,
impl Version for Configwhere
IntegerConfig: Versionize + Unversionize,
source§impl Versionize for Configwhere
ConfigVersions: VersionsDispatch<Self>,
impl Versionize for Configwhere
ConfigVersions: VersionsDispatch<Self>,
§type Versioned<'vers> = <ConfigVersions as VersionsDispatch<Config>>::Ref<'vers>
type Versioned<'vers> = <ConfigVersions as VersionsDispatch<Config>>::Ref<'vers>
The equivalent versioned type. It should have a variant for each version.
It may own the underlying data or only hold a read-only reference to it.
source§fn versionize(&self) -> Self::Versioned<'_>
fn versionize(&self) -> Self::Versioned<'_>
Wraps the object into a versioned enum with a variant for each version. This will
use references on the underlying types if possible.
source§fn versionize_owned(&self) -> Self::VersionedOwned
fn versionize_owned(&self) -> Self::VersionedOwned
Wraps the object into a versioned enum with a variant for each version. This will
clone the underlying types.
type VersionedOwned = <ConfigVersions as VersionsDispatch<Config>>::Owned
source§impl VersionizeVec for Configwhere
ConfigVersions: VersionsDispatch<Self>,
impl VersionizeVec for Configwhere
ConfigVersions: VersionsDispatch<Self>,
type VersionedSlice<'vers> = Vec<<Config as Versionize>::Versioned<'vers>>
fn versionize_slice(slice: &[Self]) -> Self::VersionedSlice<'_>
type VersionedVec = Vec<<Config as Versionize>::VersionedOwned>
fn versionize_vec(slice: &[Self]) -> Self::VersionedVec
source§impl VersionsDispatch<Config> for ConfigVersions
impl VersionsDispatch<Config> for ConfigVersions
impl Copy for Config
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)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