pub struct MirrorConfig { /* private fields */ }
Expand description
Convenience wrapper for the FIDL MirrorConfig type
Implementations§
Source§impl MirrorConfig
impl MirrorConfig
pub fn mirror_url(&self) -> &Uri
pub fn subscribe(&self) -> bool
pub fn blob_mirror_url(&self) -> &Uri
Trait Implementations§
Source§impl Clone for MirrorConfig
impl Clone for MirrorConfig
Source§fn clone(&self) -> MirrorConfig
fn clone(&self) -> MirrorConfig
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 MirrorConfig
impl Debug for MirrorConfig
Source§impl<'de> Deserialize<'de> for MirrorConfig
impl<'de> Deserialize<'de> for MirrorConfig
Derive blob_mirror_url from mirror_url if blob_mirror_url is not present.
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<MirrorConfig> for MirrorConfig
impl From<MirrorConfig> for MirrorConfig
Source§fn from(config: MirrorConfig) -> Self
fn from(config: MirrorConfig) -> Self
Converts to this type from the input type.
Source§impl From<MirrorConfigBuilder> for MirrorConfig
impl From<MirrorConfigBuilder> for MirrorConfig
Source§fn from(builder: MirrorConfigBuilder) -> Self
fn from(builder: MirrorConfigBuilder) -> Self
Converts to this type from the input type.
Source§impl Hash for MirrorConfig
impl Hash for MirrorConfig
Source§impl PartialEq for MirrorConfig
impl PartialEq for MirrorConfig
Source§impl Serialize for MirrorConfig
impl Serialize for MirrorConfig
Omit empty optional fields and omit blob_mirror_url if derivable from mirror_url.
Source§impl TryFrom<MirrorConfig> for MirrorConfig
impl TryFrom<MirrorConfig> for MirrorConfig
Source§type Error = RepositoryParseError
type Error = RepositoryParseError
The type returned in the event of a conversion error.
Source§fn try_from(other: MirrorConfig) -> Result<Self, RepositoryParseError>
fn try_from(other: MirrorConfig) -> Result<Self, RepositoryParseError>
Performs the conversion.
impl Eq for MirrorConfig
impl StructuralPartialEq for MirrorConfig
Auto Trait Implementations§
impl !Freeze for MirrorConfig
impl RefUnwindSafe for MirrorConfig
impl Send for MirrorConfig
impl Sync for MirrorConfig
impl Unpin for MirrorConfig
impl UnwindSafe for MirrorConfig
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.