pub enum GateConfigError {
InvalidValue,
AlreadyInitialized,
}Expand description
Why configure_vocab_{build,serving}_gate failed - a stable, machine-matchable pair instead of
a free-text string, so a caller (or the Python FFI) can branch on WHICH failure it was.
Variants§
InvalidValue
max_concurrent or byte_budget was zero.
AlreadyInitialized
The gate already has a policy (an earlier configure call, or a prior default-triggering use).
Implementations§
Trait Implementations§
Source§impl Clone for GateConfigError
impl Clone for GateConfigError
impl Copy for GateConfigError
Source§impl Debug for GateConfigError
impl Debug for GateConfigError
Source§impl Display for GateConfigError
impl Display for GateConfigError
impl Eq for GateConfigError
Source§impl Error for GateConfigError
impl Error for GateConfigError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for GateConfigError
impl PartialEq for GateConfigError
impl StructuralPartialEq for GateConfigError
Auto Trait Implementations§
impl Freeze for GateConfigError
impl RefUnwindSafe for GateConfigError
impl Send for GateConfigError
impl Sync for GateConfigError
impl Unpin for GateConfigError
impl UnsafeUnpin for GateConfigError
impl UnwindSafe for GateConfigError
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