pub enum FileCrypto {
AesGcm128(AesGcm128Key),
AesGcm256(AesGcm256Key),
TeaclaveFile128(TeaclaveFile128Key),
Raw,
}
Variants
AesGcm128(AesGcm128Key)
AesGcm256(AesGcm256Key)
TeaclaveFile128(TeaclaveFile128Key)
Raw
Implementations
Trait Implementations
impl Clone for FileCrypto
impl Clone for FileCrypto
fn clone(&self) -> FileCrypto
fn clone(&self) -> FileCrypto
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreimpl Debug for FileCrypto
impl Debug for FileCrypto
impl Default for FileCrypto
impl Default for FileCrypto
fn default() -> FileCrypto
fn default() -> FileCrypto
Returns the “default value” for a type. Read more
impl<'de> Deserialize<'de> for FileCrypto
impl<'de> Deserialize<'de> for FileCrypto
fn deserialize<__D>(
__deserializer: __D
) -> Result<FileCrypto, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<FileCrypto, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl From<AesGcm128Key> for FileCrypto
impl From<AesGcm128Key> for FileCrypto
fn from(crypto: AesGcm128Key) -> FileCrypto
fn from(crypto: AesGcm128Key) -> FileCrypto
Converts to this type from the input type.
impl From<AesGcm256Key> for FileCrypto
impl From<AesGcm256Key> for FileCrypto
fn from(crypto: AesGcm256Key) -> FileCrypto
fn from(crypto: AesGcm256Key) -> FileCrypto
Converts to this type from the input type.
impl From<TeaclaveFile128Key> for FileCrypto
impl From<TeaclaveFile128Key> for FileCrypto
fn from(crypto: TeaclaveFile128Key) -> FileCrypto
fn from(crypto: TeaclaveFile128Key) -> FileCrypto
Converts to this type from the input type.
impl PartialEq<FileCrypto> for FileCrypto
impl PartialEq<FileCrypto> for FileCrypto
fn eq(&self, other: &FileCrypto) -> bool
fn eq(&self, other: &FileCrypto) -> bool
impl Serialize for FileCrypto
impl Serialize for FileCrypto
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 TryFrom<FileCryptoInfo> for FileCrypto
impl TryFrom<FileCryptoInfo> for FileCrypto
impl Copy for FileCrypto
impl StructuralPartialEq for FileCrypto
Auto Trait Implementations
impl RefUnwindSafe for FileCrypto
impl Send for FileCrypto
impl Sync for FileCrypto
impl Unpin for FileCrypto
impl UnwindSafe for FileCrypto
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
sourcefn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request