pub trait KeyType {
// Provided methods
fn new(_max_size: u32) -> TeeResult<Self>
where Self: Sized { ... }
fn is_valid_size(_size: u32) -> bool
where Self: Sized { ... }
fn size(&self) -> u32 { ... }
fn max_size(&self) -> u32 { ... }
fn buffer_attribute(&self, _id: AttributeId) -> Option<BufferAttribute<'_>> { ... }
fn value_attribute(&self, _id: AttributeId) -> Option<ValueFields> { ... }
fn reset(&mut self) { ... }
fn populate(&mut self, _attributes: &[Attribute]) -> TeeResult { ... }
fn generate(&mut self, _size: u32, _params: &[Attribute]) -> TeeResult { ... }
}Provided Methods§
fn new(_max_size: u32) -> TeeResult<Self>where
Self: Sized,
fn is_valid_size(_size: u32) -> boolwhere
Self: Sized,
fn size(&self) -> u32
fn max_size(&self) -> u32
fn buffer_attribute(&self, _id: AttributeId) -> Option<BufferAttribute<'_>>
fn value_attribute(&self, _id: AttributeId) -> Option<ValueFields>
fn reset(&mut self)
fn populate(&mut self, _attributes: &[Attribute]) -> TeeResult
fn generate(&mut self, _size: u32, _params: &[Attribute]) -> TeeResult
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".