pub enum Resolution<R> {
Resolved(R),
Missing,
Unresolved,
Unauthenticated,
Unsupported,
}Expand description
URI lookup outcome without confusing processing refusal with absence.
Variants§
Resolved(R)
An authenticated original reference was passed to the scoped visitor.
Missing
Original attribute is absent.
Unresolved
URI does not resolve to a reference in the supplied source context.
Unauthenticated
Reference is foreign or its instruction is not authenticated.
Unsupported
The XML owner’s configured mechanism cannot process this URI form.
Implementations§
Source§impl<R> Resolution<R>
impl<R> Resolution<R>
Sourcepub fn map<T>(self, visitor: impl FnOnce(R) -> T) -> Resolution<T>
pub fn map<T>(self, visitor: impl FnOnce(R) -> T) -> Resolution<T>
Maps only a successfully resolved value, preserving every lookup class.
Trait Implementations§
Source§impl<R: Clone> Clone for Resolution<R>
impl<R: Clone> Clone for Resolution<R>
impl<R: Copy> Copy for Resolution<R>
Source§impl<R: Debug> Debug for Resolution<R>
impl<R: Debug> Debug for Resolution<R>
impl<R: Eq> Eq for Resolution<R>
Source§impl<R: PartialEq> PartialEq for Resolution<R>
impl<R: PartialEq> PartialEq for Resolution<R>
impl<R: PartialEq> StructuralPartialEq for Resolution<R>
Auto Trait Implementations§
impl<R> Forget for Resolution<R>
impl<R> Freeze for Resolution<R>where
R: Freeze,
impl<R> RefUnwindSafe for Resolution<R>where
R: RefUnwindSafe,
impl<R> Send for Resolution<R>where
R: Send,
impl<R> Sync for Resolution<R>where
R: Sync,
impl<R> Unpin for Resolution<R>where
R: Unpin,
impl<R> UnsafeUnpin for Resolution<R>where
R: UnsafeUnpin,
impl<R> UnwindSafe for Resolution<R>where
R: UnwindSafe,
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