Skip to main content

KeyServiceTrait

Trait KeyServiceTrait 

Source
pub trait KeyServiceTrait {
    // Required methods
    fn digit_vec(&self, length: usize) -> Vec<u8> ⓘ;
    fn digit_string(&self, length: usize) -> String;
    fn secure_string(&self, length: usize) -> String;
    fn split_prefixed_key<'a>(
        &self,
        key: &'a str,
        splitter: &str,
    ) -> Result<PrefixedKeySplits<'a>, &'static str>;
}

Required Methods§

Source

fn digit_vec(&self, length: usize) -> Vec<u8> ⓘ

Source

fn digit_string(&self, length: usize) -> String

Source

fn secure_string(&self, length: usize) -> String

Source

fn split_prefixed_key<'a>( &self, key: &'a str, splitter: &str, ) -> Result<PrefixedKeySplits<'a>, &'static str>

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§