pub enum RigLookup<'a> {
Unknown,
Missing,
Malformed(&'a str),
Found(&'a Rig),
}Expand description
What a library knows about one rig id.
Variants§
Unknown
The registry asked is not the whole library and cannot vouch either way (a test double, the DSL’s vendored registry). Nothing is refused on its word.
Missing
The library holds no rigs/<name>/rig.json.
Malformed(&'a str)
The file is there and does not parse; the parse error.
Found(&'a Rig)
The rig.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for RigLookup<'a>
impl<'a> RefUnwindSafe for RigLookup<'a>
impl<'a> Send for RigLookup<'a>
impl<'a> Sync for RigLookup<'a>
impl<'a> Unpin for RigLookup<'a>
impl<'a> UnsafeUnpin for RigLookup<'a>
impl<'a> UnwindSafe for RigLookup<'a>
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