pub enum ConfiguredSource {
Ready(ResolvedSource),
Unavailable(UnavailableSource),
}Expand description
One configured source, in exactly one of the two states a configured source has.
A sum rather than two lists side by side: with a ready vector and an unavailable
one, a source appearing in both is a shape the type permits and every reader has to
decide about — and they would not all decide the same way, since one of them fans a
query out and another names failures.
Variants§
Ready(ResolvedSource)
It built, and answers queries.
It did not, and every response says so instead.
Implementations§
Source§impl ConfiguredSource
impl ConfiguredSource
Sourcepub fn name(&self) -> &SourceName
pub fn name(&self) -> &SourceName
The name the configuration gave it, whichever state it is in.
Auto Trait Implementations§
impl !RefUnwindSafe for ConfiguredSource
impl !UnwindSafe for ConfiguredSource
impl Freeze for ConfiguredSource
impl Send for ConfiguredSource
impl Sync for ConfiguredSource
impl Unpin for ConfiguredSource
impl UnsafeUnpin for ConfiguredSource
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