pub struct LocalControlPlane { /* private fields */ }Expand description
Resolves clients from a static list — typically parsed from env vars.
This is the simplest control plane: no network calls, no hashing lookup. It uses constant-time comparison for security.
Implementations§
Source§impl LocalControlPlane
impl LocalControlPlane
Sourcepub fn new(clients: Vec<LocalClient>) -> Self
pub fn new(clients: Vec<LocalClient>) -> Self
Create from a list of client entries.
Trait Implementations§
Source§impl ControlPlane for LocalControlPlane
impl ControlPlane for LocalControlPlane
Source§fn lookup_client<'life0, 'life1, 'async_trait>(
&'life0 self,
api_key: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<ClientRecord, ControlPlaneError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn lookup_client<'life0, 'life1, 'async_trait>(
&'life0 self,
api_key: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<ClientRecord, ControlPlaneError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Look up a client by raw API key. Read more
Source§fn backend_name(&self) -> &str
fn backend_name(&self) -> &str
Human-readable backend name for logging (e.g. “remote”, “local”).
Auto Trait Implementations§
impl Freeze for LocalControlPlane
impl RefUnwindSafe for LocalControlPlane
impl Send for LocalControlPlane
impl Sync for LocalControlPlane
impl Unpin for LocalControlPlane
impl UnsafeUnpin for LocalControlPlane
impl UnwindSafe for LocalControlPlane
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