pub struct Core<W> { /* private fields */ }
Implementations§
Source§impl<W> Core<W>where
W: Write,
impl<W> Core<W>where
W: Write,
pub fn input<K: ToString>(_: &Self, name: K) -> Result<String, VarError>
pub fn set_output<K: ToString, V: ToString>(&mut self, k: K, v: V) -> Result<()>
pub fn set_env<K: ToString, V: ToString>(&mut self, k: K, v: V) -> Result<()>
pub fn add_mask<V: ToString>(&mut self, v: V) -> Result<()>
pub fn add_path<P: ToString>(&mut self, v: P) -> Result<()>
pub fn save_state<K: ToString, V: ToString>(&mut self, k: K, v: V) -> Result<()>
pub fn state<K: ToString>(_: &Self, name: K) -> Result<String, VarError>
pub fn stop_logging<F, T>(&mut self, f: F) -> Result<T>where
F: FnOnce() -> T,
pub fn is_debug(_: &Self) -> bool
pub fn log_message<M: ToString>( &mut self, level: LogLevel, message: M, ) -> Result<()>
pub fn debug<M: ToString>(&mut self, message: M) -> Result<()>
pub fn error<M: ToString>(&mut self, message: M) -> Result<()>
pub fn warning<M: ToString>(&mut self, message: M) -> Result<()>
pub fn log<M: ToString>( &mut self, level: LogLevel, log: Log<'_, M>, ) -> Result<()>
pub fn log_debug<M: ToString>(&mut self, log: Log<'_, M>) -> Result<()>
pub fn log_error<M: ToString>(&mut self, log: Log<'_, M>) -> Result<()>
pub fn log_warning<M: ToString>(&mut self, log: Log<'_, M>) -> Result<()>
Trait Implementations§
Auto Trait Implementations§
impl<W> Freeze for Core<W>where
W: Freeze,
impl<W> RefUnwindSafe for Core<W>where
W: RefUnwindSafe,
impl<W> Send for Core<W>where
W: Send,
impl<W> Sync for Core<W>where
W: Sync,
impl<W> Unpin for Core<W>where
W: Unpin,
impl<W> UnwindSafe for Core<W>where
W: 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