Skip to main content

PinSource

Trait PinSource 

Source
pub trait PinSource: Send + Sync {
    // Required method
    fn check(
        &self,
        person: &Person,
        pins: &PinSet,
    ) -> Result<PinCheck, ProviderError>;
}
Expand description

A place pins are kept, asked about one account at a time.

check is called only for an account a rule already named, never to scan: a source answers for person alone. Err is “could not find out” and ends the match with an error; a source that can read what it needs but must not use it answers PinCheck::Refused.

Required Methods§

Source

fn check( &self, person: &Person, pins: &PinSet, ) -> Result<PinCheck, ProviderError>

Whether person holds one of pins.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§