pub struct RepositoryConfig { /* private fields */ }
Expand description
Convenience wrapper type for the autogenerated FIDL RepositoryConfig
.
Implementations§
Source§impl RepositoryConfig
impl RepositoryConfig
pub fn repo_url(&self) -> &RepositoryUrl
Sourcepub fn insert_mirror(&mut self, mirror: MirrorConfig) -> Option<MirrorConfig>
pub fn insert_mirror(&mut self, mirror: MirrorConfig) -> Option<MirrorConfig>
Insert the provided mirror, returning any previous mirror with the same URL.
Sourcepub fn remove_mirror(&mut self, mirror_url: &Uri) -> Option<MirrorConfig>
pub fn remove_mirror(&mut self, mirror_url: &Uri) -> Option<MirrorConfig>
Remove the requested mirror by url, returning the removed mirror, if it existed.
Sourcepub fn mirrors(&self) -> &[MirrorConfig]
pub fn mirrors(&self) -> &[MirrorConfig]
Returns a slice of all mirrors.
Sourcepub fn root_version(&self) -> u32
pub fn root_version(&self) -> u32
Returns the initial trusted root version.
Sourcepub fn root_threshold(&self) -> u32
pub fn root_threshold(&self) -> u32
Returns the threshold of root keys needed to sign the initial root metadata before it is considered trusted.
Sourcepub fn root_keys(&self) -> &[RepositoryKey]
pub fn root_keys(&self) -> &[RepositoryKey]
Returns a slice of all root keys.
pub fn use_local_mirror(&self) -> bool
Sourcepub fn repo_storage_type(&self) -> &RepositoryStorageType
pub fn repo_storage_type(&self) -> &RepositoryStorageType
Returns the repository storage type.
Trait Implementations§
Source§impl Clone for RepositoryConfig
impl Clone for RepositoryConfig
Source§fn clone(&self) -> RepositoryConfig
fn clone(&self) -> RepositoryConfig
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for RepositoryConfig
impl Debug for RepositoryConfig
Source§impl<'de> Deserialize<'de> for RepositoryConfig
impl<'de> Deserialize<'de> for RepositoryConfig
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
Source§impl From<RepositoryConfig> for RepositoryConfig
impl From<RepositoryConfig> for RepositoryConfig
Source§fn from(config: RepositoryConfig) -> Self
fn from(config: RepositoryConfig) -> Self
Converts to this type from the input type.
Source§impl From<RepositoryConfig> for RepositoryConfigBuilder
impl From<RepositoryConfig> for RepositoryConfigBuilder
Source§fn from(config: RepositoryConfig) -> Self
fn from(config: RepositoryConfig) -> Self
Converts to this type from the input type.
Source§impl From<RepositoryConfigBuilder> for RepositoryConfig
impl From<RepositoryConfigBuilder> for RepositoryConfig
Source§fn from(builder: RepositoryConfigBuilder) -> Self
fn from(builder: RepositoryConfigBuilder) -> Self
Converts to this type from the input type.
Source§impl PartialEq for RepositoryConfig
impl PartialEq for RepositoryConfig
Source§impl Serialize for RepositoryConfig
impl Serialize for RepositoryConfig
Source§impl TryFrom<RepositoryConfig> for RepositoryConfig
impl TryFrom<RepositoryConfig> for RepositoryConfig
Source§type Error = RepositoryParseError
type Error = RepositoryParseError
The type returned in the event of a conversion error.
Source§fn try_from(other: RepositoryConfig) -> Result<Self, RepositoryParseError>
fn try_from(other: RepositoryConfig) -> Result<Self, RepositoryParseError>
Performs the conversion.
impl Eq for RepositoryConfig
impl StructuralPartialEq for RepositoryConfig
Auto Trait Implementations§
impl Freeze for RepositoryConfig
impl RefUnwindSafe for RepositoryConfig
impl Send for RepositoryConfig
impl Sync for RepositoryConfig
impl Unpin for RepositoryConfig
impl UnwindSafe for RepositoryConfig
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)Source§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
Source§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.