pub struct Environment { /* private fields */ }
Implementations§
Source§impl Environment
impl Environment
pub fn new() -> Result<Environment>
pub fn set_parameter<P: Parameter>(&mut self, p: P) -> Result<()>
pub fn unset_logging_closure(&mut self, stream_type: StreamType) -> Result<()>
pub fn set_logging_closure<F: Fn(&str) + Send + 'static>( &mut self, stream_type: StreamType, closure: F, ) -> Result<()>
Trait Implementations§
Source§impl Drop for Environment
impl Drop for Environment
impl Send for Environment
Auto Trait Implementations§
impl Freeze for Environment
impl !RefUnwindSafe for Environment
impl !Sync for Environment
impl Unpin for Environment
impl !UnwindSafe for Environment
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