pub struct ReusableExecutionCapacity { /* private fields */ }Implementations§
Source§impl ReusableExecutionCapacity
impl ReusableExecutionCapacity
pub fn new( maximum_sequences: u32, maximum_tokens: u64, maximum_pages: u64, ) -> Result<Self, VNextError>
pub const fn maximum_sequences(self) -> u32
pub const fn maximum_tokens(self) -> u64
pub const fn maximum_pages(self) -> u64
pub const fn covers(self, sequences: u32, tokens: u64, pages: u64) -> bool
Trait Implementations§
Source§impl Clone for ReusableExecutionCapacity
impl Clone for ReusableExecutionCapacity
Source§fn clone(&self) -> ReusableExecutionCapacity
fn clone(&self) -> ReusableExecutionCapacity
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ReusableExecutionCapacity
Source§impl Debug for ReusableExecutionCapacity
impl Debug for ReusableExecutionCapacity
Source§impl<'de> Deserialize<'de> for ReusableExecutionCapacity
impl<'de> Deserialize<'de> for ReusableExecutionCapacity
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ReusableExecutionCapacity
Source§impl Hash for ReusableExecutionCapacity
impl Hash for ReusableExecutionCapacity
Source§impl Ord for ReusableExecutionCapacity
impl Ord for ReusableExecutionCapacity
Source§fn cmp(&self, other: &ReusableExecutionCapacity) -> Ordering
fn cmp(&self, other: &ReusableExecutionCapacity) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for ReusableExecutionCapacity
impl PartialOrd for ReusableExecutionCapacity
impl StructuralPartialEq for ReusableExecutionCapacity
Auto Trait Implementations§
impl Freeze for ReusableExecutionCapacity
impl RefUnwindSafe for ReusableExecutionCapacity
impl Send for ReusableExecutionCapacity
impl Sync for ReusableExecutionCapacity
impl Unpin for ReusableExecutionCapacity
impl UnsafeUnpin for ReusableExecutionCapacity
impl UnwindSafe for ReusableExecutionCapacity
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