Enum SecurityLevel
pub enum SecurityLevel {
Level1 = 1,
Level3 = 3,
Level4 = 4,
Level5 = 5,
}Expand description
Security levels for cryptographic algorithms
Variants§
Implementations§
§impl SecurityLevel
impl SecurityLevel
Trait Implementations§
§impl Clone for SecurityLevel
impl Clone for SecurityLevel
§fn clone(&self) -> SecurityLevel
fn clone(&self) -> SecurityLevel
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more§impl Debug for SecurityLevel
impl Debug for SecurityLevel
§impl<'de> Deserialize<'de> for SecurityLevel
impl<'de> Deserialize<'de> for SecurityLevel
§fn deserialize<__D>(
__deserializer: __D,
) -> Result<SecurityLevel, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<SecurityLevel, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl From<SecurityLevel> for JsValue
impl From<SecurityLevel> for JsValue
§fn from(value: SecurityLevel) -> JsValue
fn from(value: SecurityLevel) -> JsValue
Converts to this type from the input type.
§impl FromWasmAbi for SecurityLevel
impl FromWasmAbi for SecurityLevel
§impl Hash for SecurityLevel
impl Hash for SecurityLevel
§impl IntoWasmAbi for SecurityLevel
impl IntoWasmAbi for SecurityLevel
§impl OptionFromWasmAbi for SecurityLevel
impl OptionFromWasmAbi for SecurityLevel
§fn is_none(val: &<SecurityLevel as FromWasmAbi>::Abi) -> bool
fn is_none(val: &<SecurityLevel as FromWasmAbi>::Abi) -> bool
Tests whether the argument is a “none” instance. If so it will be
deserialized as
None, and otherwise it will be passed to
FromWasmAbi.§impl OptionIntoWasmAbi for SecurityLevel
impl OptionIntoWasmAbi for SecurityLevel
§fn none() -> <SecurityLevel as IntoWasmAbi>::Abi
fn none() -> <SecurityLevel as IntoWasmAbi>::Abi
Returns an ABI instance indicating “none”, which JS will interpret as
the
None branch of this option. Read more§impl PartialEq for SecurityLevel
impl PartialEq for SecurityLevel
§impl Serialize for SecurityLevel
impl Serialize for SecurityLevel
§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
§impl TryFromJsValue for SecurityLevel
impl TryFromJsValue for SecurityLevel
§fn try_from_js_value_ref(value: &JsValue) -> Option<SecurityLevel>
fn try_from_js_value_ref(value: &JsValue) -> Option<SecurityLevel>
Performs the conversion.
§impl VectorFromWasmAbi for SecurityLevel
impl VectorFromWasmAbi for SecurityLevel
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi( js: <SecurityLevel as VectorFromWasmAbi>::Abi, ) -> Box<[SecurityLevel]>
§impl VectorIntoWasmAbi for SecurityLevel
impl VectorIntoWasmAbi for SecurityLevel
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi( vector: Box<[SecurityLevel]>, ) -> <SecurityLevel as VectorIntoWasmAbi>::Abi
impl Copy for SecurityLevel
impl Eq for SecurityLevel
impl StructuralPartialEq for SecurityLevel
Auto Trait Implementations§
impl Freeze for SecurityLevel
impl RefUnwindSafe for SecurityLevel
impl Send for SecurityLevel
impl Sync for SecurityLevel
impl Unpin for SecurityLevel
impl UnsafeUnpin for SecurityLevel
impl UnwindSafe for SecurityLevel
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§impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
Source§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
Same as
IntoWasmAbi::AbiSource§fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
Same as
IntoWasmAbi::into_abi, except that it may throw and never
return in the case of Err.