Skip to main content

HostKwKeyOptions

Trait HostKwKeyOptions 

Source
pub trait HostKwKeyOptions {
    // Required methods
    fn new(&mut self) -> Result<Resource<KwKeyOptions>>;
    fn can_wrap(
        &mut self,
        self_: Resource<KwKeyOptions>,
        allowed: bool,
    ) -> Result<()>;
    fn can_unwrap(
        &mut self,
        self_: Resource<KwKeyOptions>,
        allowed: bool,
    ) -> Result<()>;
    fn extractable(
        &mut self,
        self_: Resource<KwKeyOptions>,
        allowed: bool,
    ) -> Result<()>;
}

Required Methods§

Source

fn new(&mut self) -> Result<Resource<KwKeyOptions>>

Source

fn can_wrap( &mut self, self_: Resource<KwKeyOptions>, allowed: bool, ) -> Result<()>

Whether the minted key may wrap. Disabled by default.

Source

fn can_unwrap( &mut self, self_: Resource<KwKeyOptions>, allowed: bool, ) -> Result<()>

Whether the minted key may unwrap. Disabled by default.

Source

fn extractable( &mut self, self_: Resource<KwKeyOptions>, allowed: bool, ) -> Result<()>

Whether the minted key’s material may be exported. Disabled by default.

Implementations on Foreign Types§

Source§

impl<_T: HostKwKeyOptions + ?Sized + Send> HostKwKeyOptions for &mut _T

Source§

fn can_wrap( &mut self, self_: Resource<KwKeyOptions>, allowed: bool, ) -> Result<()>

Whether the minted key may wrap. Disabled by default.

Source§

fn can_unwrap( &mut self, self_: Resource<KwKeyOptions>, allowed: bool, ) -> Result<()>

Whether the minted key may unwrap. Disabled by default.

Source§

fn extractable( &mut self, self_: Resource<KwKeyOptions>, allowed: bool, ) -> Result<()>

Whether the minted key’s material may be exported. Disabled by default.

Source§

fn new(&mut self) -> Result<Resource<KwKeyOptions>>

Implementors§