Struct rocketmq_common::utils::env_utils::EnvUtils
source · pub struct EnvUtils;Expand description
Utility functions related to environment variables.
Implementations§
source§impl EnvUtils
impl EnvUtils
sourcepub fn get_rocketmq_home() -> String
pub fn get_rocketmq_home() -> String
Gets the value of the ROCKETMQ_HOME environment variable.
If ROCKETMQ_HOME is not set, it defaults to the current directory and sets ROCKETMQ_HOME accordingly.
§Returns
The value of the ROCKETMQ_HOME environment variable as a String.
Auto Trait Implementations§
impl Freeze for EnvUtils
impl RefUnwindSafe for EnvUtils
impl Send for EnvUtils
impl Sync for EnvUtils
impl Unpin for EnvUtils
impl UnwindSafe for EnvUtils
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