#[non_exhaustive]pub struct NetConfig {
pub retry: Option<u32>,
pub git_fetch_with_cli: Option<bool>,
pub offline: Option<bool>,
}Expand description
The [net] table.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.retry: Option<u32>Number of times to retry possibly spurious network errors.
git_fetch_with_cli: Option<bool>If this is true, then Cargo will use the git executable to fetch
registry indexes and git dependencies. If false, then it uses a
built-in git library.
offline: Option<bool>If this is true, then Cargo will avoid accessing the network, and
attempt to proceed with locally cached data. If false, Cargo will
access the network as needed, and generate an error if it encounters a
network error.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for NetConfig
impl RefUnwindSafe for NetConfig
impl Send for NetConfig
impl Sync for NetConfig
impl Unpin for NetConfig
impl UnwindSafe for NetConfig
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