#[repr(u16)]pub enum KeypairEncoding {
Raw = 0,
Pkcs8 = 1,
Der = 2,
Pem = 3,
}Variants§
Trait Implementations§
Source§impl Clone for KeypairEncoding
impl Clone for KeypairEncoding
Source§fn clone(&self) -> KeypairEncoding
fn clone(&self) -> KeypairEncoding
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 KeypairEncoding
impl Debug for KeypairEncoding
Source§impl Display for KeypairEncoding
impl Display for KeypairEncoding
Source§impl From<KeypairEncoding> for KeyPairEncoding
impl From<KeypairEncoding> for KeyPairEncoding
Source§fn from(encoding: KeypairEncoding) -> Self
fn from(encoding: KeypairEncoding) -> Self
Converts to this type from the input type.
Source§impl From<KeypairEncoding> for i32
impl From<KeypairEncoding> for i32
Source§fn from(e: KeypairEncoding) -> i32
fn from(e: KeypairEncoding) -> i32
Converts to this type from the input type.
Source§impl From<KeypairEncoding> for u16
impl From<KeypairEncoding> for u16
Source§fn from(e: KeypairEncoding) -> u16
fn from(e: KeypairEncoding) -> u16
Converts to this type from the input type.
Source§impl<'a> GuestType<'a> for KeypairEncoding
impl<'a> GuestType<'a> for KeypairEncoding
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<'_, KeypairEncoding>,
) -> Result<KeypairEncoding, GuestError>
fn read( location: &GuestPtr<'_, KeypairEncoding>, ) -> Result<KeypairEncoding, GuestError>
Reads this value from the provided
ptr. Read moreSource§fn write(
location: &GuestPtr<'_, KeypairEncoding>,
val: Self,
) -> Result<(), GuestError>
fn write( location: &GuestPtr<'_, KeypairEncoding>, val: Self, ) -> Result<(), GuestError>
Source§impl<'a> GuestTypeTransparent<'a> for KeypairEncoding
impl<'a> GuestTypeTransparent<'a> for KeypairEncoding
Source§fn validate(location: *mut KeypairEncoding) -> Result<(), GuestError>
fn validate(location: *mut KeypairEncoding) -> Result<(), GuestError>
Source§impl Hash for KeypairEncoding
impl Hash for KeypairEncoding
Source§impl PartialEq for KeypairEncoding
impl PartialEq for KeypairEncoding
Source§impl TryFrom<i32> for KeypairEncoding
impl TryFrom<i32> for KeypairEncoding
Source§type Error = GuestError
type Error = GuestError
The type returned in the event of a conversion error.
Source§fn try_from(value: i32) -> Result<KeypairEncoding, GuestError>
fn try_from(value: i32) -> Result<KeypairEncoding, GuestError>
Performs the conversion.
Source§impl TryFrom<u16> for KeypairEncoding
impl TryFrom<u16> for KeypairEncoding
Source§type Error = GuestError
type Error = GuestError
The type returned in the event of a conversion error.
Source§fn try_from(value: u16) -> Result<KeypairEncoding, GuestError>
fn try_from(value: u16) -> Result<KeypairEncoding, GuestError>
Performs the conversion.
impl Copy for KeypairEncoding
impl Eq for KeypairEncoding
impl StructuralPartialEq for KeypairEncoding
Auto Trait Implementations§
impl Freeze for KeypairEncoding
impl RefUnwindSafe for KeypairEncoding
impl Send for KeypairEncoding
impl Sync for KeypairEncoding
impl Unpin for KeypairEncoding
impl UnsafeUnpin for KeypairEncoding
impl UnwindSafe for KeypairEncoding
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