pub struct Config { /* private fields */ }Implementations§
Source§impl Config
impl Config
pub fn get_project_dirs() -> Result<ProjectDirs, NoValidHomeDirectory>
pub fn get_default_cache_path() -> Result<PathBuf, NoValidHomeDirectory>
pub fn get_default_data_path() -> Result<PathBuf, NoValidHomeDirectory>
pub fn with_lua_version(self, lua_version: LuaVersion) -> Self
pub fn with_tree(self, tree: PathBuf) -> Self
pub fn server(&self) -> &Url
pub fn extra_servers(&self) -> &Vec<Url>
pub fn enabled_dev_servers(&self) -> Result<Vec<Url>, ConfigError>
pub fn only_sources(&self) -> Option<&String>
pub fn namespace(&self) -> Option<&String>
pub fn lua_dir(&self) -> Option<&PathBuf>
pub fn lua_version(&self) -> Option<&LuaVersion>
Sourcepub fn user_tree(&self, version: LuaVersion) -> Result<Tree, TreeError>
pub fn user_tree(&self, version: LuaVersion) -> Result<Tree, TreeError>
The tree in which to install rocks.
If installing packges for a project, use Project::tree instead.
pub fn verbose(&self) -> bool
pub fn no_progress(&self) -> bool
pub fn timeout(&self) -> &Duration
pub fn max_jobs(&self) -> usize
pub fn make_cmd(&self) -> String
pub fn cmake_cmd(&self) -> String
pub fn variables(&self) -> &HashMap<String, String>
pub fn external_deps(&self) -> &ExternalDependencySearchConfig
pub fn entrypoint_layout(&self) -> &RockLayoutConfig
pub fn cache_dir(&self) -> &PathBuf
pub fn data_dir(&self) -> &PathBuf
pub fn vendor_dir(&self) -> Option<&PathBuf>
pub fn generate_luarc(&self) -> bool
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnsafeUnpin for Config
impl UnwindSafe for Config
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<'p, T> Seq<'p, T> for Twhere
T: Clone,
impl<'p, T> Seq<'p, T> for Twhere
T: Clone,
Source§impl<T, S> SpanWrap<S> for Twhere
S: WrappingSpan<T>,
impl<T, S> SpanWrap<S> for Twhere
S: WrappingSpan<T>,
Source§fn with_span(self, span: S) -> <S as WrappingSpan<Self>>::Spanned
fn with_span(self, span: S) -> <S as WrappingSpan<Self>>::Spanned
Invokes
WrappingSpan::make_wrapped to wrap an AST node in a span.