pub enum Resource {
InputBytes,
BundleEntries,
GraphElements,
MetadataBytes,
Depth,
Steps,
OutputBytes,
}Expand description
The resources a bounded operation can exhaust.
Named separately so a failure says which allowance ran out, and so a caller raising one bound does not have to guess which.
Variants§
InputBytes
Bytes of input accepted.
BundleEntries
Documents in one bundle.
GraphElements
Vertices, edges and nodes in a decoded schema or instance.
MetadataBytes
Bytes of metadata attached to a schema or instance.
Depth
Levels of nesting descended.
Steps
Steps of evaluation or search performed.
OutputBytes
Bytes of output produced.
Implementations§
Trait Implementations§
impl Copy for Resource
impl Eq for Resource
impl StructuralPartialEq for Resource
Auto Trait Implementations§
impl Freeze for Resource
impl RefUnwindSafe for Resource
impl Send for Resource
impl Sync for Resource
impl Unpin for Resource
impl UnsafeUnpin for Resource
impl UnwindSafe for Resource
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