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>(_: &Core<W>, name: K) -> Result<String, VarError>where
K: ToString,
pub fn set_output<K, V>(&mut self, k: K, v: V) -> Result<(), Error>
pub fn set_env<K, V>(&mut self, k: K, v: V) -> Result<(), Error>
pub fn add_mask<V>(&mut self, v: V) -> Result<(), Error>where
V: ToString,
pub fn add_path<P>(&mut self, v: P) -> Result<(), Error>where
P: ToString,
pub fn save_state<K, V>(&mut self, k: K, v: V) -> Result<(), Error>
pub fn state<K>(_: &Core<W>, name: K) -> Result<String, VarError>where
K: ToString,
pub fn stop_logging<F, T>(&mut self, f: F) -> Result<T, Error>where
F: FnOnce() -> T,
pub fn is_debug(_: &Core<W>) -> bool
pub fn log_message<M>(
&mut self,
level: LogLevel,
message: M,
) -> Result<(), Error>where
M: ToString,
pub fn debug<M>(&mut self, message: M) -> Result<(), Error>where
M: ToString,
pub fn error<M>(&mut self, message: M) -> Result<(), Error>where
M: ToString,
pub fn warning<M>(&mut self, message: M) -> Result<(), Error>where
M: ToString,
pub fn log<M>(&mut self, level: LogLevel, log: Log<'_, M>) -> Result<(), Error>where
M: ToString,
pub fn log_debug<M>(&mut self, log: Log<'_, M>) -> Result<(), Error>where
M: ToString,
pub fn log_error<M>(&mut self, log: Log<'_, M>) -> Result<(), Error>where
M: ToString,
pub fn log_warning<M>(&mut self, log: Log<'_, M>) -> Result<(), Error>where
M: ToString,
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