Add get_as_mut to Limits
This commit is contained in:
parent
a0df444f87
commit
5d545d7fc9
|
@ -304,6 +304,10 @@ pub mod limits {
|
||||||
map
|
map
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pub fn get_as_mut(&mut self) -> &mut Limits {
|
||||||
|
self
|
||||||
|
}
|
||||||
|
|
||||||
/// check_limits uses the API to get the current request limits of the instance.
|
/// check_limits uses the API to get the current request limits of the instance.
|
||||||
/// It returns a `Limits` struct containing all the limits.
|
/// It returns a `Limits` struct containing all the limits.
|
||||||
/// If the rate limit is disabled, then the limit is set to `u64::MAX`.
|
/// If the rate limit is disabled, then the limit is set to `u64::MAX`.
|
||||||
|
|
Loading…
Reference in New Issue