pub enum RpcDigest {
Md5,
Sha256,
}Variants§
Implementations§
Source§impl RpcDigest
impl RpcDigest
pub fn message_authentication_code( self, key: &RpcAuthenticationKey, message: &[u8], ) -> Result<Vec<u8>, RpcAuthenticationError>
pub fn verifies( self, key: &RpcAuthenticationKey, message: &[u8], authentication_code: &[u8], ) -> Result<bool, RpcAuthenticationError>
Trait Implementations§
impl Copy for RpcDigest
impl Eq for RpcDigest
impl StructuralPartialEq for RpcDigest
Auto Trait Implementations§
impl Freeze for RpcDigest
impl RefUnwindSafe for RpcDigest
impl Send for RpcDigest
impl Sync for RpcDigest
impl Unpin for RpcDigest
impl UnsafeUnpin for RpcDigest
impl UnwindSafe for RpcDigest
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more