pub struct UnavailableSource { /* private fields */ }Expand description
One configured source that could not be built at all.
A missing credential, a plugin whose implementation has not landed, a config: block
its own plugin refuses at build time: none of them is a reason to answer nothing for
the other sources, so this is carried beside the ones that built and reported as a
SourceFailure in every response.
Implementations§
Sourcepub fn name(&self) -> &SourceName
pub fn name(&self) -> &SourceName
The name the configuration gave it.
Sourcepub fn error(&self) -> &SourceError
pub fn error(&self) -> &SourceError
Why it did not build.
Sourcepub fn failure(&self) -> SourceFailure
pub fn failure(&self) -> SourceFailure
The same thing, as a response carries it.
Trait Implementations§
Source§fn clone(&self) -> UnavailableSource
fn clone(&self) -> UnavailableSource
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
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