pub struct Source { /* private fields */ }Implementations§
Source§impl Source
impl Source
pub fn from_toml<P: AsRef<Path>>(toml_path: P) -> Result<Self>
pub fn from_config(cfg: Config) -> Result<Self>
Sourcepub fn send<V>(&mut self, value: &V) -> Result<()>
pub fn send<V>(&mut self, value: &V) -> Result<()>
Send a value of type V.
Return Ok(()) if the value was sent successfully;
Otherwise return an error.
pub fn config(&self) -> &Config
Auto Trait Implementations§
impl Freeze for Source
impl RefUnwindSafe for Source
impl Send for Source
impl !Sync for Source
impl Unpin for Source
impl UnwindSafe for Source
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