pub struct StringConfigSource { /* private fields */ }Expand description
Load configuration from an in-memory string (useful for tests or config-center payloads).
Implementations§
Source§impl StringConfigSource
impl StringConfigSource
pub fn new(content: impl Into<String>, format: ConfigFormat) -> Self
Trait Implementations§
Source§impl ConfigSource for StringConfigSource
impl ConfigSource for StringConfigSource
Source§fn fetch(&self) -> Result<(String, ConfigFormat), SynapticError>
fn fetch(&self) -> Result<(String, ConfigFormat), SynapticError>
Fetch the current configuration content and its format.
Auto Trait Implementations§
impl Freeze for StringConfigSource
impl RefUnwindSafe for StringConfigSource
impl Send for StringConfigSource
impl Sync for StringConfigSource
impl Unpin for StringConfigSource
impl UnsafeUnpin for StringConfigSource
impl UnwindSafe for StringConfigSource
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