Skip to main content

Verifier

Trait Verifier 

Source
pub trait Verifier {
    // Provided methods
    fn verify_first_party(&self, _caveat: &[u8]) -> bool { ... }
    fn verify_third_party(&self, _caveat: &[u8]) -> bool { ... }
}

Provided Methods§

Source

fn verify_first_party(&self, _caveat: &[u8]) -> bool

Source

fn verify_third_party(&self, _caveat: &[u8]) -> bool

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl<'a, V: Verifier> Verifier for &'a V

Source§

fn verify_first_party(&self, caveat: &[u8]) -> bool

Source§

fn verify_third_party(&self, caveat: &[u8]) -> bool

Source§

impl<'a, V: Verifier> Verifier for &'a mut V

Source§

fn verify_first_party(&self, caveat: &[u8]) -> bool

Source§

fn verify_third_party(&self, caveat: &[u8]) -> bool

Source§

impl<V: Verifier> Verifier for Arc<V>

Source§

fn verify_first_party(&self, caveat: &[u8]) -> bool

Source§

fn verify_third_party(&self, caveat: &[u8]) -> bool

Source§

impl<V: Verifier> Verifier for Box<V>

Source§

fn verify_first_party(&self, caveat: &[u8]) -> bool

Source§

fn verify_third_party(&self, caveat: &[u8]) -> bool

Source§

impl<V: Verifier> Verifier for Rc<V>

Source§

fn verify_first_party(&self, caveat: &[u8]) -> bool

Source§

fn verify_third_party(&self, caveat: &[u8]) -> bool

Implementors§

Source§

impl<F> Verifier for ByteFunc<F>
where F: Fn(&[u8]) -> bool,

Source§

impl<F> Verifier for Func<F>
where F: Fn(&str) -> bool,

Source§

impl<Tag: AsRef<[u8]>, Value: AsRef<[u8]>> Verifier for Eq<Tag, Value>

Source§

impl<V1: Verifier, V2: Verifier> Verifier for LinkedVerifier<V1, V2>