pub struct FnSource<F> { /* private fields */ }Expand description
A Source backed by a user-supplied closure.
Use to plug in arbitrary identity providers (cloud metadata, Kubernetes downward API, hardware security modules, …) without implementing the trait manually.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<F> Freeze for FnSource<F>where
F: Freeze,
impl<F> RefUnwindSafe for FnSource<F>where
F: RefUnwindSafe,
impl<F> Send for FnSource<F>where
F: Send,
impl<F> Sync for FnSource<F>where
F: Sync,
impl<F> Unpin for FnSource<F>where
F: Unpin,
impl<F> UnsafeUnpin for FnSource<F>where
F: UnsafeUnpin,
impl<F> UnwindSafe for FnSource<F>where
F: UnwindSafe,
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