pub struct DistributionMirror(/* private fields */);Expand description
A mirror of a given distribution.
Implementations§
source§impl DistributionMirror
impl DistributionMirror
pub fn get<'a>( &self, client: &'a dyn Client, ) -> Result<DistributionMirrorFull, Error>
pub fn get_wadl<'a>(&self, client: &'a dyn Client) -> Result<Resource, Error>
pub fn put<'a>( &self, client: &'a dyn Client, representation: &DistributionMirrorFull, ) -> Result<(), Error>
pub fn patch<'a>( &self, client: &'a dyn Client, representation: &DistributionMirrorDiff, ) -> Result<(), Error>
sourcepub fn can_transition_to_country_mirror<'a>(
&self,
client: &'a dyn Client,
) -> Result<(), Error>
pub fn can_transition_to_country_mirror<'a>( &self, client: &'a dyn Client, ) -> Result<(), Error>
Verify if a mirror can be set as a country mirror or return False.
§Arguments
sourcepub fn get_overall_freshness<'a>(
&self,
client: &'a dyn Client,
) -> Result<(), Error>
pub fn get_overall_freshness<'a>( &self, client: &'a dyn Client, ) -> Result<(), Error>
Return this mirror’s overall freshness.
For ARCHIVE mirrors, the overall freshness is the worst freshness of all of this mirror’s content objects (MirrorDistroArchSeries, MirrorDistroSeriesSource or MirrorCDImageDistroSeriess).
For RELEASE mirrors, the overall freshness is either UP (up to date), if the mirror contains all ISO images that it should or UNKNOWN if it doesn’t contain one or more ISO images.
§Arguments
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DistributionMirror
impl RefUnwindSafe for DistributionMirror
impl Send for DistributionMirror
impl Sync for DistributionMirror
impl Unpin for DistributionMirror
impl UnwindSafe for DistributionMirror
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