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§
fn new(&mut self) -> Result<Resource<KwKeyOptions>>
Sourcefn can_wrap(
&mut self,
self_: Resource<KwKeyOptions>,
allowed: bool,
) -> Result<()>
fn can_wrap( &mut self, self_: Resource<KwKeyOptions>, allowed: bool, ) -> Result<()>
Whether the minted key may wrap. Disabled by default.
Sourcefn can_unwrap(
&mut self,
self_: Resource<KwKeyOptions>,
allowed: bool,
) -> Result<()>
fn can_unwrap( &mut self, self_: Resource<KwKeyOptions>, allowed: bool, ) -> Result<()>
Whether the minted key may unwrap. Disabled by default.
Sourcefn extractable(
&mut self,
self_: Resource<KwKeyOptions>,
allowed: bool,
) -> Result<()>
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
impl<_T: HostKwKeyOptions + ?Sized + Send> HostKwKeyOptions for &mut _T
Source§fn can_wrap(
&mut self,
self_: Resource<KwKeyOptions>,
allowed: bool,
) -> Result<()>
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<()>
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<()>
fn extractable( &mut self, self_: Resource<KwKeyOptions>, allowed: bool, ) -> Result<()>
Whether the minted key’s material may be exported. Disabled by default.