use crate::{BiometricStrength, Error, Result, Text};
pub(crate) type RawContext = ();
#[derive(Debug)]
pub(crate) struct Context;
impl Context {
pub(crate) fn new(_: RawContext) -> Self {
Self
}
pub(crate) fn authenticate<F>(&self, _: Text, _: &Policy, _: F) -> Result<()>
where
F: Fn(Result<()>) + Send + 'static,
{
Err(Error::Unavailable)
}
}
#[derive(Debug)]
pub(crate) struct Policy;
impl Policy {
#[inline]
pub(crate) fn set_action_id(&mut self, _: String) -> Result<()> {
Ok(())
}
}
#[derive(Debug)]
pub(crate) struct PolicyBuilder;
impl PolicyBuilder {
pub(crate) const fn new() -> Self {
Self
}
pub(crate) const fn biometrics(self, _: Option<BiometricStrength>) -> Self {
Self
}
pub(crate) const fn password(self, _: bool) -> Self {
Self
}
pub(crate) const fn companion(self, _: bool) -> Self {
Self
}
pub(crate) const fn wrist_detection(self, _: bool) -> Self {
Self
}
pub(crate) fn action_ids(self, _: Vec<String>) -> Self {
self
}
pub(crate) const fn build(self) -> Option<Policy> {
None
}
}