hsmtool::util::attribute

Enum MechanismType

Source
#[repr(u64)]
pub enum MechanismType {
Show 327 variants RsaPkcsKeyPairGen = 0, RsaPkcs = 1, Rsa9796 = 2, RsaX509 = 3, Md2RsaPkcs = 4, Md5RsaPkcs = 5, Sha1RsaPkcs = 6, Ripemd128RsaPkcs = 7, Ripemd160RsaPkcs = 8, RsaPkcsOaep = 9, RsaX931KeyPairGen = 10, RsaX931 = 11, Sha1RsaX931 = 12, RsaPkcsPss = 13, Sha1RsaPkcsPss = 14, DsaKeyPairGen = 16, Dsa = 17, DsaSha1 = 18, DsaSha224 = 19, DsaSha256 = 20, DsaSha384 = 21, DsaSha512 = 22, DhPkcsKeyPairGen = 32, DhPkcsDerive = 33, X942DhKeyPairGen = 48, X942DhDerive = 49, X942DhHybridDerive = 50, X942MqvDerive = 51, Sha256RsaPkcs = 64, Sha384RsaPkcs = 65, Sha512RsaPkcs = 66, Sha256RsaPkcsPss = 67, Sha384RsaPkcsPss = 68, Sha512RsaPkcsPss = 69, Sha512224 = 72, Sha512224Hmac = 73, Sha512224HmacGeneral = 74, Sha512224KeyDerivation = 75, Sha512256 = 76, Sha512256Hmac = 77, Sha512256HmacGeneral = 78, Sha512256KeyDerivation = 79, Sha512T = 80, Sha512THmac = 81, Sha512THmacGeneral = 82, Sha512TKeyDerivation = 83, Rc2KeyGen = 256, Rc2Ecb = 257, Rc2Cbc = 258, Rc2Mac = 259, Rc2MacGeneral = 260, Rc2CbcPad = 261, Rc4KeyGen = 272, Rc4 = 273, DesKeyGen = 288, DesEcb = 289, DesCbc = 290, DesMac = 291, DesMacGeneral = 292, DesCbcPad = 293, Des2KeyGen = 304, Des3KeyGen = 305, Des3Ecb = 306, Des3Cbc = 307, Des3Mac = 308, Des3MacGeneral = 309, Des3CbcPad = 310, Des3CmacGeneral = 311, Des3Cmac = 312, CdmfKeyGen = 320, CdmfEcb = 321, CdmfCbc = 322, CdmfMac = 323, CdmfMacGeneral = 324, CdmfCbcPad = 325, DesOfb64 = 336, DesOfb8 = 337, DesCfb64 = 338, DesCfb8 = 339, Md2 = 512, Md2Hmac = 513, Md2HmacGeneral = 514, Md5 = 528, Md5Hmac = 529, Md5HmacGeneral = 530, Sha1 = 544, Sha1Hmac = 545, Sha1HmacGeneral = 546, Ripemd128 = 560, Ripemd128Hmac = 561, Ripemd128HmacGeneral = 562, Ripemd160 = 576, Ripemd160Hmac = 577, Ripemd160HmacGeneral = 578, Sha256 = 592, Sha256Hmac = 593, Sha256HmacGeneral = 594, Sha384 = 608, Sha384Hmac = 609, Sha384HmacGeneral = 610, Sha512 = 624, Sha512Hmac = 625, Sha512HmacGeneral = 626, SecuridKeyGen = 640, Securid = 642, HotpKeyGen = 656, Hotp = 657, Acti = 672, ActiKeyGen = 673, CastKeyGen = 768, CastEcb = 769, CastCbc = 770, CastMac = 771, CastMacGeneral = 772, CastCbcPad = 773, Cast3KeyGen = 784, Cast3Ecb = 785, Cast3Cbc = 786, Cast3Mac = 787, Cast3MacGeneral = 788, Cast3CbcPad = 789, Cast128KeyGen = 800, Cast128Ecb = 801, Cast128Cbc = 802, Cast128Mac = 803, Cast128MacGeneral = 804, Cast128CbcPad = 805, Rc5KeyGen = 816, Rc5Ecb = 817, Rc5Cbc = 818, Rc5Mac = 819, Rc5MacGeneral = 820, Rc5CbcPad = 821, IdeaKeyGen = 832, IdeaEcb = 833, IdeaCbc = 834, IdeaMac = 835, IdeaMacGeneral = 836, IdeaCbcPad = 837, GenericSecretKeyGen = 848, ConcatenateBaseAndKey = 864, ConcatenateBaseAndData = 866, ConcatenateDataAndBase = 867, XorBaseAndData = 868, ExtractKeyFromKey = 869, Ssl3PreMasterKeyGen = 880, Ssl3MasterKeyDerive = 881, Ssl3KeyAndMacDerive = 882, Ssl3MasterKeyDeriveDh = 883, TlsPreMasterKeyGen = 884, TlsMasterKeyDerive = 885, TlsKeyAndMacDerive = 886, TlsMasterKeyDeriveDh = 887, TlsPrf = 888, Ssl3Md5Mac = 896, Ssl3Sha1Mac = 897, Md5KeyDerivation = 912, Md2KeyDerivation = 913, Sha1KeyDerivation = 914, Sha256KeyDerivation = 915, Sha384KeyDerivation = 916, Sha512KeyDerivation = 917, PbeMd2DesCbc = 928, PbeMd5DesCbc = 929, PbeMd5CastCbc = 930, PbeMd5Cast3Cbc = 931, PbeMd5Cast128Cbc = 932, PbeSha1Cast128Cbc = 933, PbeSha1Rc4128 = 934, PbeSha1Rc440 = 935, PbeSha1Des3EdeCbc = 936, PbeSha1Des2EdeCbc = 937, PbeSha1Rc2128Cbc = 938, PbeSha1Rc240Cbc = 939, Pkcs5Pbkd2 = 944, PbaSha1WithSha1Hmac = 960, WtlsPreMasterKeyGen = 976, WtlsMasterKeyDerive = 977, WtlsMasterKeyDeriveDhEcc = 978, WtlsPrf = 979, WtlsServerKeyAndMacDerive = 980, WtlsClientKeyAndMacDerive = 981, Tls10MacServer = 982, Tls10MacClient = 983, Tls12Mac = 984, Tls12Kdf = 985, Tls12MasterKeyDerive = 992, Tls12KeyAndMacDerive = 993, Tls12MasterKeyDeriveDh = 994, Tls12KeySafeDerive = 995, TlsMac = 996, TlsKdf = 997, KeyWrapLynks = 1_024, KeyWrapSetOaep = 1_025, CmsSig = 1_280, KipDerive = 1_296, KipWrap = 1_297, KipMac = 1_298, CamelliaKeyGen = 1_360, CamelliaCtr = 1_368, AriaKeyGen = 1_376, AriaEcb = 1_377, AriaCbc = 1_378, AriaMac = 1_379, AriaMacGeneral = 1_380, AriaCbcPad = 1_381, AriaEcbEncryptData = 1_382, AriaCbcEncryptData = 1_383, SeedKeyGen = 1_616, SeedEcb = 1_617, SeedCbc = 1_618, SeedMac = 1_619, SeedMacGeneral = 1_620, SeedCbcPad = 1_621, SeedEcbEncryptData = 1_622, SeedCbcEncryptData = 1_623, SkipjackKeyGen = 4_096, SkipjackEcb64 = 4_097, SkipjackCbc64 = 4_098, SkipjackOfb64 = 4_099, SkipjackCfb64 = 4_100, SkipjackCfb32 = 4_101, SkipjackCfb16 = 4_102, SkipjackCfb8 = 4_103, SkipjackWrap = 4_104, SkipjackPrivateWrap = 4_105, SkipjackRelayx = 4_106, KeaKeyPairGen = 4_112, KeaKeyDerive = 4_113, FortezzaTimestamp = 4_128, BatonKeyGen = 4_144, BatonEcb128 = 4_145, BatonEcb96 = 4_146, BatonCbc128 = 4_147, BatonCounter = 4_148, BatonShuffle = 4_149, BatonWrap = 4_150, EcKeyPairGen = 4_160, Ecdsa = 4_161, EcdsaSha1 = 4_162, EcdsaSha224 = 4_163, EcdsaSha256 = 4_164, EcdsaSha384 = 4_165, EcdsaSha512 = 4_166, Ecdh1Derive = 4_176, Ecdh1CofactorDerive = 4_177, EcmqvDerive = 4_178, EcdhAesKeyWrap = 4_179, RsaAesKeyWrap = 4_180, JuniperKeyGen = 4_192, JuniperEcb128 = 4_193, JuniperCbc128 = 4_194, JuniperCounter = 4_195, JuniperShuffle = 4_196, JuniperWrap = 4_197, Fasthash = 4_208, AesKeyGen = 4_224, AesEcb = 4_225, AesCbc = 4_226, AesMac = 4_227, AesMacGeneral = 4_228, AesCbcPad = 4_229, AesCtr = 4_230, AesGcm = 4_231, AesCcm = 4_232, AesCts = 4_233, AesCmac = 4_234, AesCmacGeneral = 4_235, AesXcbcMac = 4_236, AesXcbcMac96 = 4_237, AesGmac = 4_238, BlowfishKeyGen = 4_240, BlowfishCbc = 4_241, TwofishKeyGen = 4_242, TwofishCbc = 4_243, BlowfishCbcPad = 4_244, TwofishCbcPad = 4_245, DesEcbEncryptData = 4_352, DesCbcEncryptData = 4_353, Des3EcbEncryptData = 4_354, Des3CbcEncryptData = 4_355, AesEcbEncryptData = 4_356, AesCbcEncryptData = 4_357, Gostr3410KeyPairGen = 4_608, Gostr3410 = 4_609, Gostr3410WithGostr3411 = 4_610, Gostr3410KeyWrap = 4_611, Gostr3410Derive = 4_612, Gostr3411 = 4_624, Gostr3411Hmac = 4_625, Gost28147KeyGen = 4_640, Gost28147Ecb = 4_641, Gost28147 = 4_642, Gost28147Mac = 4_643, Gost28147KeyWrap = 4_644, DsaParameterGen = 8_192, DhPkcsParameterGen = 8_193, X942DhParameterGen = 8_194, DsaProbablisticParameterGen = 8_195, DsaShaweTaylorParameterGen = 8_196, AesOfb = 8_452, AesCfb64 = 8_453, AesCfb8 = 8_454, AesCfb128 = 8_455, AesCfb1 = 8_456, Sha224 = 597, Sha224Hmac = 598, Sha224HmacGeneral = 599, Sha224RsaPkcs = 70, Sha224RsaPkcsPss = 71, Sha224KeyDerivation = 918, CamelliaEcb = 1_361, CamelliaCbc = 1_362, CamelliaMac = 1_363, CamelliaMacGeneral = 1_364, CamelliaCbcPad = 1_365, CamelliaEcbEncryptData = 1_366, CamelliaCbcEncryptData = 1_367, AesKeyWrap = 8_457, AesKeyWrapPad = 8_458, RsaPkcsTpm1_1 = 16_385, RsaPkcsOaepTpm1_1 = 16_386, EcEdwardsKeyPairGen = 4_181, EcMontgomeryKeyPairGen = 4_182, Eddsa = 4_183, VendorDefined = 2_147_483_648, UnknownMechanismType(u64),
}

Variants§

§

RsaPkcsKeyPairGen = 0

§

RsaPkcs = 1

§

Rsa9796 = 2

§

RsaX509 = 3

§

Md2RsaPkcs = 4

§

Md5RsaPkcs = 5

§

Sha1RsaPkcs = 6

§

Ripemd128RsaPkcs = 7

§

Ripemd160RsaPkcs = 8

§

RsaPkcsOaep = 9

§

RsaX931KeyPairGen = 10

§

RsaX931 = 11

§

Sha1RsaX931 = 12

§

RsaPkcsPss = 13

§

Sha1RsaPkcsPss = 14

§

DsaKeyPairGen = 16

§

Dsa = 17

§

DsaSha1 = 18

§

DsaSha224 = 19

§

DsaSha256 = 20

§

DsaSha384 = 21

§

DsaSha512 = 22

§

DhPkcsKeyPairGen = 32

§

DhPkcsDerive = 33

§

X942DhKeyPairGen = 48

§

X942DhDerive = 49

§

X942DhHybridDerive = 50

§

X942MqvDerive = 51

§

Sha256RsaPkcs = 64

§

Sha384RsaPkcs = 65

§

Sha512RsaPkcs = 66

§

Sha256RsaPkcsPss = 67

§

Sha384RsaPkcsPss = 68

§

Sha512RsaPkcsPss = 69

§

Sha512224 = 72

§

Sha512224Hmac = 73

§

Sha512224HmacGeneral = 74

§

Sha512224KeyDerivation = 75

§

Sha512256 = 76

§

Sha512256Hmac = 77

§

Sha512256HmacGeneral = 78

§

Sha512256KeyDerivation = 79

§

Sha512T = 80

§

Sha512THmac = 81

§

Sha512THmacGeneral = 82

§

Sha512TKeyDerivation = 83

§

Rc2KeyGen = 256

§

Rc2Ecb = 257

§

Rc2Cbc = 258

§

Rc2Mac = 259

§

Rc2MacGeneral = 260

§

Rc2CbcPad = 261

§

Rc4KeyGen = 272

§

Rc4 = 273

§

DesKeyGen = 288

§

DesEcb = 289

§

DesCbc = 290

§

DesMac = 291

§

DesMacGeneral = 292

§

DesCbcPad = 293

§

Des2KeyGen = 304

§

Des3KeyGen = 305

§

Des3Ecb = 306

§

Des3Cbc = 307

§

Des3Mac = 308

§

Des3MacGeneral = 309

§

Des3CbcPad = 310

§

Des3CmacGeneral = 311

§

Des3Cmac = 312

§

CdmfKeyGen = 320

§

CdmfEcb = 321

§

CdmfCbc = 322

§

CdmfMac = 323

§

CdmfMacGeneral = 324

§

CdmfCbcPad = 325

§

DesOfb64 = 336

§

DesOfb8 = 337

§

DesCfb64 = 338

§

DesCfb8 = 339

§

Md2 = 512

§

Md2Hmac = 513

§

Md2HmacGeneral = 514

§

Md5 = 528

§

Md5Hmac = 529

§

Md5HmacGeneral = 530

§

Sha1 = 544

§

Sha1Hmac = 545

§

Sha1HmacGeneral = 546

§

Ripemd128 = 560

§

Ripemd128Hmac = 561

§

Ripemd128HmacGeneral = 562

§

Ripemd160 = 576

§

Ripemd160Hmac = 577

§

Ripemd160HmacGeneral = 578

§

Sha256 = 592

§

Sha256Hmac = 593

§

Sha256HmacGeneral = 594

§

Sha384 = 608

§

Sha384Hmac = 609

§

Sha384HmacGeneral = 610

§

Sha512 = 624

§

Sha512Hmac = 625

§

Sha512HmacGeneral = 626

§

SecuridKeyGen = 640

§

Securid = 642

§

HotpKeyGen = 656

§

Hotp = 657

§

Acti = 672

§

ActiKeyGen = 673

§

CastKeyGen = 768

§

CastEcb = 769

§

CastCbc = 770

§

CastMac = 771

§

CastMacGeneral = 772

§

CastCbcPad = 773

§

Cast3KeyGen = 784

§

Cast3Ecb = 785

§

Cast3Cbc = 786

§

Cast3Mac = 787

§

Cast3MacGeneral = 788

§

Cast3CbcPad = 789

§

Cast128KeyGen = 800

§

Cast128Ecb = 801

§

Cast128Cbc = 802

§

Cast128Mac = 803

§

Cast128MacGeneral = 804

§

Cast128CbcPad = 805

§

Rc5KeyGen = 816

§

Rc5Ecb = 817

§

Rc5Cbc = 818

§

Rc5Mac = 819

§

Rc5MacGeneral = 820

§

Rc5CbcPad = 821

§

IdeaKeyGen = 832

§

IdeaEcb = 833

§

IdeaCbc = 834

§

IdeaMac = 835

§

IdeaMacGeneral = 836

§

IdeaCbcPad = 837

§

GenericSecretKeyGen = 848

§

ConcatenateBaseAndKey = 864

§

ConcatenateBaseAndData = 866

§

ConcatenateDataAndBase = 867

§

XorBaseAndData = 868

§

ExtractKeyFromKey = 869

§

Ssl3PreMasterKeyGen = 880

§

Ssl3MasterKeyDerive = 881

§

Ssl3KeyAndMacDerive = 882

§

Ssl3MasterKeyDeriveDh = 883

§

TlsPreMasterKeyGen = 884

§

TlsMasterKeyDerive = 885

§

TlsKeyAndMacDerive = 886

§

TlsMasterKeyDeriveDh = 887

§

TlsPrf = 888

§

Ssl3Md5Mac = 896

§

Ssl3Sha1Mac = 897

§

Md5KeyDerivation = 912

§

Md2KeyDerivation = 913

§

Sha1KeyDerivation = 914

§

Sha256KeyDerivation = 915

§

Sha384KeyDerivation = 916

§

Sha512KeyDerivation = 917

§

PbeMd2DesCbc = 928

§

PbeMd5DesCbc = 929

§

PbeMd5CastCbc = 930

§

PbeMd5Cast3Cbc = 931

§

PbeMd5Cast128Cbc = 932

§

PbeSha1Cast128Cbc = 933

§

PbeSha1Rc4128 = 934

§

PbeSha1Rc440 = 935

§

PbeSha1Des3EdeCbc = 936

§

PbeSha1Des2EdeCbc = 937

§

PbeSha1Rc2128Cbc = 938

§

PbeSha1Rc240Cbc = 939

§

Pkcs5Pbkd2 = 944

§

PbaSha1WithSha1Hmac = 960

§

WtlsPreMasterKeyGen = 976

§

WtlsMasterKeyDerive = 977

§

WtlsMasterKeyDeriveDhEcc = 978

§

WtlsPrf = 979

§

WtlsServerKeyAndMacDerive = 980

§

WtlsClientKeyAndMacDerive = 981

§

Tls10MacServer = 982

§

Tls10MacClient = 983

§

Tls12Mac = 984

§

Tls12Kdf = 985

§

Tls12MasterKeyDerive = 992

§

Tls12KeyAndMacDerive = 993

§

Tls12MasterKeyDeriveDh = 994

§

Tls12KeySafeDerive = 995

§

TlsMac = 996

§

TlsKdf = 997

§

KeyWrapLynks = 1_024

§

KeyWrapSetOaep = 1_025

§

CmsSig = 1_280

§

KipDerive = 1_296

§

KipWrap = 1_297

§

KipMac = 1_298

§

CamelliaKeyGen = 1_360

§

CamelliaCtr = 1_368

§

AriaKeyGen = 1_376

§

AriaEcb = 1_377

§

AriaCbc = 1_378

§

AriaMac = 1_379

§

AriaMacGeneral = 1_380

§

AriaCbcPad = 1_381

§

AriaEcbEncryptData = 1_382

§

AriaCbcEncryptData = 1_383

§

SeedKeyGen = 1_616

§

SeedEcb = 1_617

§

SeedCbc = 1_618

§

SeedMac = 1_619

§

SeedMacGeneral = 1_620

§

SeedCbcPad = 1_621

§

SeedEcbEncryptData = 1_622

§

SeedCbcEncryptData = 1_623

§

SkipjackKeyGen = 4_096

§

SkipjackEcb64 = 4_097

§

SkipjackCbc64 = 4_098

§

SkipjackOfb64 = 4_099

§

SkipjackCfb64 = 4_100

§

SkipjackCfb32 = 4_101

§

SkipjackCfb16 = 4_102

§

SkipjackCfb8 = 4_103

§

SkipjackWrap = 4_104

§

SkipjackPrivateWrap = 4_105

§

SkipjackRelayx = 4_106

§

KeaKeyPairGen = 4_112

§

KeaKeyDerive = 4_113

§

FortezzaTimestamp = 4_128

§

BatonKeyGen = 4_144

§

BatonEcb128 = 4_145

§

BatonEcb96 = 4_146

§

BatonCbc128 = 4_147

§

BatonCounter = 4_148

§

BatonShuffle = 4_149

§

BatonWrap = 4_150

§

EcKeyPairGen = 4_160

§

Ecdsa = 4_161

§

EcdsaSha1 = 4_162

§

EcdsaSha224 = 4_163

§

EcdsaSha256 = 4_164

§

EcdsaSha384 = 4_165

§

EcdsaSha512 = 4_166

§

Ecdh1Derive = 4_176

§

Ecdh1CofactorDerive = 4_177

§

EcmqvDerive = 4_178

§

EcdhAesKeyWrap = 4_179

§

RsaAesKeyWrap = 4_180

§

JuniperKeyGen = 4_192

§

JuniperEcb128 = 4_193

§

JuniperCbc128 = 4_194

§

JuniperCounter = 4_195

§

JuniperShuffle = 4_196

§

JuniperWrap = 4_197

§

Fasthash = 4_208

§

AesKeyGen = 4_224

§

AesEcb = 4_225

§

AesCbc = 4_226

§

AesMac = 4_227

§

AesMacGeneral = 4_228

§

AesCbcPad = 4_229

§

AesCtr = 4_230

§

AesGcm = 4_231

§

AesCcm = 4_232

§

AesCts = 4_233

§

AesCmac = 4_234

§

AesCmacGeneral = 4_235

§

AesXcbcMac = 4_236

§

AesXcbcMac96 = 4_237

§

AesGmac = 4_238

§

BlowfishKeyGen = 4_240

§

BlowfishCbc = 4_241

§

TwofishKeyGen = 4_242

§

TwofishCbc = 4_243

§

BlowfishCbcPad = 4_244

§

TwofishCbcPad = 4_245

§

DesEcbEncryptData = 4_352

§

DesCbcEncryptData = 4_353

§

Des3EcbEncryptData = 4_354

§

Des3CbcEncryptData = 4_355

§

AesEcbEncryptData = 4_356

§

AesCbcEncryptData = 4_357

§

Gostr3410KeyPairGen = 4_608

§

Gostr3410 = 4_609

§

Gostr3410WithGostr3411 = 4_610

§

Gostr3410KeyWrap = 4_611

§

Gostr3410Derive = 4_612

§

Gostr3411 = 4_624

§

Gostr3411Hmac = 4_625

§

Gost28147KeyGen = 4_640

§

Gost28147Ecb = 4_641

§

Gost28147 = 4_642

§

Gost28147Mac = 4_643

§

Gost28147KeyWrap = 4_644

§

DsaParameterGen = 8_192

§

DhPkcsParameterGen = 8_193

§

X942DhParameterGen = 8_194

§

DsaProbablisticParameterGen = 8_195

§

DsaShaweTaylorParameterGen = 8_196

§

AesOfb = 8_452

§

AesCfb64 = 8_453

§

AesCfb8 = 8_454

§

AesCfb128 = 8_455

§

AesCfb1 = 8_456

§

Sha224 = 597

§

Sha224Hmac = 598

§

Sha224HmacGeneral = 599

§

Sha224RsaPkcs = 70

§

Sha224RsaPkcsPss = 71

§

Sha224KeyDerivation = 918

§

CamelliaEcb = 1_361

§

CamelliaCbc = 1_362

§

CamelliaMac = 1_363

§

CamelliaMacGeneral = 1_364

§

CamelliaCbcPad = 1_365

§

CamelliaEcbEncryptData = 1_366

§

CamelliaCbcEncryptData = 1_367

§

AesKeyWrap = 8_457

§

AesKeyWrapPad = 8_458

§

RsaPkcsTpm1_1 = 16_385

§

RsaPkcsOaepTpm1_1 = 16_386

§

EcEdwardsKeyPairGen = 4_181

§

EcMontgomeryKeyPairGen = 4_182

§

Eddsa = 4_183

§

VendorDefined = 2_147_483_648

§

UnknownMechanismType(u64)

Trait Implementations§

Source§

impl Clone for MechanismType

Source§

fn clone(&self) -> MechanismType

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for MechanismType

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for MechanismType

Source§

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<MechanismType> for AttrData

Source§

fn from(val: MechanismType) -> Self

Converts to this type from the input type.
Source§

impl From<MechanismType> for MechanismType

Source§

fn from(val: MechanismType) -> Self

Converts to this type from the input type.
Source§

impl From<MechanismType> for u64

Source§

fn from(enum_value: MechanismType) -> Self

Converts to this type from the input type.
Source§

impl From<u64> for MechanismType

Source§

fn from(number: u64) -> Self

Converts to this type from the input type.
Source§

impl FromPrimitive for MechanismType

Source§

type Primitive = u64

Source§

fn from_primitive(number: Self::Primitive) -> Self

Source§

impl Hash for MechanismType

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl PartialEq for MechanismType

Source§

fn eq(&self, other: &MechanismType) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Serialize for MechanismType

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl TryFrom<&AttrData> for MechanismType

Source§

type Error = AttributeError

The type returned in the event of a conversion error.
Source§

fn try_from(val: &AttrData) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<MechanismType> for MechanismType

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(val: MechanismType) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl Copy for MechanismType

Source§

impl Eq for MechanismType

Source§

impl StructuralPartialEq for MechanismType

Auto Trait Implementations§

Blanket Implementations§

§

impl<T> Annotate for T
where T: Serialize + ?Sized,

§

default fn format( &self, _variant: Option<&str>, _field: &MemberId<'_>, ) -> Option<Format>

§

default fn comment( &self, _variant: Option<&str>, _field: &MemberId<'_>, ) -> Option<String>

§

default fn as_annotate(&self) -> Option<&dyn Annotate>

§

default fn thunk_serialize( &self, serializer: &mut AnnotatedSerializer<'_>, ) -> Result<Document, Error>

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dst: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

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

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> Serialize for T
where T: Serialize + ?Sized,

Source§

fn erased_serialize(&self, serializer: &mut dyn Serializer) -> Result<(), Error>

Source§

fn do_erased_serialize( &self, serializer: &mut dyn Serializer, ) -> Result<(), ErrorImpl>

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,