pub struct SchemeRouter { /* private fields */ }Expand description
Dispatches a reference to the registered provider for its URI scheme (§6.1).
Built by the CLI/FFI with the concrete provider impls (e.g. the Azure
provider); core depends only on the trait, never on a provider crate. An
unknown scheme falls through to UnsupportedProvider, yielding a clear
“unsupported scheme” error rather than a silent empty or a fabricated value.
Implementations§
Source§impl SchemeRouter
impl SchemeRouter
Sourcepub fn new() -> Self
pub fn new() -> Self
An empty router (every reference is unsupported until a provider is registered).
Sourcepub fn with(self, provider: Box<dyn SecretProvider>) -> Self
pub fn with(self, provider: Box<dyn SecretProvider>) -> Self
Register a provider for its declared scheme (builder style). The last registration for a scheme wins (callers register one impl per scheme).
Trait Implementations§
Source§impl Default for SchemeRouter
impl Default for SchemeRouter
Source§fn default() -> SchemeRouter
fn default() -> SchemeRouter
Returns the “default value” for a type. Read more
Source§impl SecretProvider for SchemeRouter
impl SecretProvider for SchemeRouter
Auto Trait Implementations§
impl !RefUnwindSafe for SchemeRouter
impl !Send for SchemeRouter
impl !Sync for SchemeRouter
impl !UnwindSafe for SchemeRouter
impl Freeze for SchemeRouter
impl Unpin for SchemeRouter
impl UnsafeUnpin for SchemeRouter
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