sha256

Trait TrySha256Digest

Source
pub trait TrySha256Digest {
    type Error: Debug;

    // Required methods
    fn digest(self) -> Result<String, Self::Error>;
    fn async_digest<'async_trait>(
        self,
    ) -> Pin<Box<dyn Future<Output = Result<String, Self::Error>> + Send + 'async_trait>>
       where Self: 'async_trait;
}

Required Associated Types§

Required Methods§

Source

fn digest(self) -> Result<String, Self::Error>

Source

fn async_digest<'async_trait>( self, ) -> Pin<Box<dyn Future<Output = Result<String, Self::Error>> + Send + 'async_trait>>
where Self: 'async_trait,

Implementors§

Source§

impl<P> TrySha256Digest for P
where P: AsRef<Path> + Send,