pub struct RezConfigProvider { /* private fields */ }Expand description
Implementation of ConfigProvider that reads from environment variables.
Implementations§
Source§impl RezConfigProvider
impl RezConfigProvider
Sourcepub async fn load_from_environment(&mut self) -> Result<()>
pub async fn load_from_environment(&mut self) -> Result<()>
Load configuration from environment variables.
This method reads Rez configuration from standard environment variables:
REZ_PACKAGES_PATH: Colon/semicolon-separated list of package directoriesREZ_LOCAL_PACKAGES_PATH: Local packages directory (highest priority)REZ_RELEASE_PACKAGES_PATH: Release packages directory (lowest priority)REZ_LSP_DEBUG: Enable debug logging (true/1)
§Errors
Returns an error if environment variables contain invalid paths or values.
Trait Implementations§
Source§impl ConfigProvider for RezConfigProvider
impl ConfigProvider for RezConfigProvider
Source§fn get_package_paths<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Vec<PathBuf>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_package_paths<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Vec<PathBuf>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Get package search paths.
Source§fn get_local_packages_path<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Option<PathBuf>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_local_packages_path<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Option<PathBuf>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Get local packages path.
Source§fn get_release_packages_path<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Option<PathBuf>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_release_packages_path<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Option<PathBuf>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Get release packages path.
Source§impl Debug for RezConfigProvider
impl Debug for RezConfigProvider
Auto Trait Implementations§
impl Freeze for RezConfigProvider
impl RefUnwindSafe for RezConfigProvider
impl Send for RezConfigProvider
impl Sync for RezConfigProvider
impl Unpin for RezConfigProvider
impl UnsafeUnpin for RezConfigProvider
impl UnwindSafe for RezConfigProvider
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