pub enum LoadOutcome {
Loaded(DocumentId),
AlreadyLoaded(DocumentId),
Cycle(String),
}Expand description
Result of a single load_schema call, distinguishing three outcomes.
Variants§
Loaded(DocumentId)
Schema was freshly loaded and parsed.
AlreadyLoaded(DocumentId)
Schema was already in loaded_locations.
Cycle(String)
Schema is currently mid-parse (in the resolving set). Contains the
resolved URI so the caller can record a cycle edge and fix it up later.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LoadOutcome
impl RefUnwindSafe for LoadOutcome
impl Send for LoadOutcome
impl Sync for LoadOutcome
impl Unpin for LoadOutcome
impl UnsafeUnpin for LoadOutcome
impl UnwindSafe for LoadOutcome
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