pub struct ExactScript<Q, R> { /* private fields */ }Expand description
Count- and byte-bounded exact finite capability script.
Implementations§
Source§impl<Q: Retained, R: Retained> ExactScript<Q, R>
impl<Q: Retained, R: Retained> ExactScript<Q, R>
Sourcepub fn try_new(
limits: ScriptLimits,
steps: Vec<ScriptStep<Q, R>>,
) -> Result<Self, ScriptBuildError<Q, R>>
pub fn try_new( limits: ScriptLimits, steps: Vec<ScriptStep<Q, R>>, ) -> Result<Self, ScriptBuildError<Q, R>>
Retains all supplied steps or returns them unchanged on rejection.
Sourcepub const fn limits(&self) -> ScriptLimits
pub const fn limits(&self) -> ScriptLimits
Returns configured hard ownership limits.
Sourcepub const fn retained_bytes(&self) -> RetainedBytes
pub const fn retained_bytes(&self) -> RetainedBytes
Returns variable bytes retained by remaining requests and responses.
Trait Implementations§
Auto Trait Implementations§
impl<Q, R> Freeze for ExactScript<Q, R>
impl<Q, R> RefUnwindSafe for ExactScript<Q, R>where
VecDeque<MeasuredStep<Q, R>>: RefUnwindSafe,
impl<Q, R> Send for ExactScript<Q, R>
impl<Q, R> Sync for ExactScript<Q, R>
impl<Q, R> Unpin for ExactScript<Q, R>
impl<Q, R> UnsafeUnpin for ExactScript<Q, R>where
VecDeque<MeasuredStep<Q, R>>: UnsafeUnpin,
impl<Q, R> UnwindSafe for ExactScript<Q, R>where
VecDeque<MeasuredStep<Q, R>>: UnwindSafe,
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