#[repr(u16)]pub enum AlgorithmType {
Signatures = 0,
Symmetric = 1,
KeyExchange = 2,
}Variants§
Trait Implementations§
Source§impl Clone for AlgorithmType
impl Clone for AlgorithmType
Source§fn clone(&self) -> AlgorithmType
fn clone(&self) -> AlgorithmType
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AlgorithmType
impl Debug for AlgorithmType
Source§impl Display for AlgorithmType
impl Display for AlgorithmType
Source§impl From<AlgorithmType> for AlgorithmType
impl From<AlgorithmType> for AlgorithmType
Source§fn from(options_type: AlgorithmType) -> Self
fn from(options_type: AlgorithmType) -> Self
Converts to this type from the input type.
Source§impl From<AlgorithmType> for i32
impl From<AlgorithmType> for i32
Source§fn from(e: AlgorithmType) -> i32
fn from(e: AlgorithmType) -> i32
Converts to this type from the input type.
Source§impl From<AlgorithmType> for u16
impl From<AlgorithmType> for u16
Source§fn from(e: AlgorithmType) -> u16
fn from(e: AlgorithmType) -> u16
Converts to this type from the input type.
Source§impl<'a> GuestType<'a> for AlgorithmType
impl<'a> GuestType<'a> for AlgorithmType
Source§fn guest_size() -> u32
fn guest_size() -> u32
Returns the size, in bytes, of this type in the guest memory.
Source§fn guest_align() -> usize
fn guest_align() -> usize
Returns the required alignment of this type, in bytes, for both guest
and host memory.
Source§fn read(
location: &GuestPtr<'_, AlgorithmType>,
) -> Result<AlgorithmType, GuestError>
fn read( location: &GuestPtr<'_, AlgorithmType>, ) -> Result<AlgorithmType, GuestError>
Reads this value from the provided
ptr. Read moreSource§fn write(
location: &GuestPtr<'_, AlgorithmType>,
val: Self,
) -> Result<(), GuestError>
fn write( location: &GuestPtr<'_, AlgorithmType>, val: Self, ) -> Result<(), GuestError>
Source§impl<'a> GuestTypeTransparent<'a> for AlgorithmType
impl<'a> GuestTypeTransparent<'a> for AlgorithmType
Source§fn validate(location: *mut AlgorithmType) -> Result<(), GuestError>
fn validate(location: *mut AlgorithmType) -> Result<(), GuestError>
Source§impl Hash for AlgorithmType
impl Hash for AlgorithmType
Source§impl PartialEq for AlgorithmType
impl PartialEq for AlgorithmType
Source§impl TryFrom<i32> for AlgorithmType
impl TryFrom<i32> for AlgorithmType
Source§type Error = GuestError
type Error = GuestError
The type returned in the event of a conversion error.
Source§fn try_from(value: i32) -> Result<AlgorithmType, GuestError>
fn try_from(value: i32) -> Result<AlgorithmType, GuestError>
Performs the conversion.
Source§impl TryFrom<u16> for AlgorithmType
impl TryFrom<u16> for AlgorithmType
Source§type Error = GuestError
type Error = GuestError
The type returned in the event of a conversion error.
Source§fn try_from(value: u16) -> Result<AlgorithmType, GuestError>
fn try_from(value: u16) -> Result<AlgorithmType, GuestError>
Performs the conversion.
impl Copy for AlgorithmType
impl Eq for AlgorithmType
impl StructuralPartialEq for AlgorithmType
Auto Trait Implementations§
impl Freeze for AlgorithmType
impl RefUnwindSafe for AlgorithmType
impl Send for AlgorithmType
impl Sync for AlgorithmType
impl Unpin for AlgorithmType
impl UnsafeUnpin for AlgorithmType
impl UnwindSafe for AlgorithmType
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