pub struct Store {
pub registries: HashMap<String, Registry>,
}Fields§
§registries: HashMap<String, Registry>Implementations§
Source§impl Store
impl Store
pub async fn load() -> Store
pub async fn save(&self)
pub async fn get_current_registry(&self, is_local: bool) -> Option<String>
pub async fn list_registries(&self)
pub fn set_current_use(&mut self, name: &str, is_local: bool)
pub async fn test_registry_speed(&self) -> Vec<SpeedTestResult>
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Store
impl<'de> Deserialize<'de> for Store
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Store
impl RefUnwindSafe for Store
impl Send for Store
impl Sync for Store
impl Unpin for Store
impl UnwindSafe for Store
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