pub enum DurationGenerationMode {
Zero,
FromSecs(u64),
FromMillis(u64),
FromMicros(u64),
FromNanos(u64),
}Expand description
Generation mode for Duration.
This enum allows an agent (or user) to specify how to create a Duration:
Zero: Zero durationFromSecs: Duration from secondsFromMillis: Duration from millisecondsFromMicros: Duration from microsecondsFromNanos: Duration from nanoseconds
Variants§
Zero
Zero duration.
FromSecs(u64)
Duration from seconds.
FromMillis(u64)
Duration from milliseconds.
FromMicros(u64)
Duration from microseconds.
FromNanos(u64)
Duration from nanoseconds.
Trait Implementations§
Source§impl Clone for DurationGenerationMode
impl Clone for DurationGenerationMode
Source§fn clone(&self) -> DurationGenerationMode
fn clone(&self) -> DurationGenerationMode
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DurationGenerationMode
impl Debug for DurationGenerationMode
Source§impl Elicitation for DurationGenerationMode
impl Elicitation for DurationGenerationMode
Source§async fn elicit<C: ElicitCommunicator>(communicator: &C) -> ElicitResult<Self>
async fn elicit<C: ElicitCommunicator>(communicator: &C) -> ElicitResult<Self>
Elicit a value of this type from the user via style-aware client. Read more
Source§fn elicit_checked(
peer: Peer<RoleServer>,
) -> impl Future<Output = ElicitResult<Self>> + Send
fn elicit_checked( peer: Peer<RoleServer>, ) -> impl Future<Output = ElicitResult<Self>> + Send
Server-side elicitation via MCP peer. Read more
Source§fn with_style(style: Self::Style) -> ElicitBuilder<Self>
fn with_style(style: Self::Style) -> ElicitBuilder<Self>
Create a builder for one-off style override. Read more
Source§fn elicit_proven<C: ElicitCommunicator>(
communicator: &C,
) -> impl Future<Output = ElicitResult<(Self, Established<Is<Self>>)>> + Send
fn elicit_proven<C: ElicitCommunicator>( communicator: &C, ) -> impl Future<Output = ElicitResult<(Self, Established<Is<Self>>)>> + Send
Elicit a value with proof it inhabits type Self. Read more
Source§fn kani_proof() -> TokenStream
fn kani_proof() -> TokenStream
Generate a Kani symbolic execution proof harness for this type. Read more
Source§fn verus_proof() -> TokenStream
fn verus_proof() -> TokenStream
Generate a Verus specification proof for this type. Read more
Source§fn creusot_proof() -> TokenStream
fn creusot_proof() -> TokenStream
Generate a Creusot contract proof for this type. Read more
Source§fn prusti_proof() -> TokenStream
fn prusti_proof() -> TokenStream
Generate a Prusti separation logic proof for this type. Read more
Source§impl Hash for DurationGenerationMode
impl Hash for DurationGenerationMode
Source§impl PartialEq for DurationGenerationMode
impl PartialEq for DurationGenerationMode
Source§impl Prompt for DurationGenerationMode
impl Prompt for DurationGenerationMode
Source§impl Select for DurationGenerationMode
impl Select for DurationGenerationMode
Source§fn select_with_filter<F, V>(filter: F) -> Vwhere
Self: Filter<F, V>,
fn select_with_filter<F, V>(filter: F) -> Vwhere
Self: Filter<F, V>,
Select from filtered options. Read more
impl Copy for DurationGenerationMode
impl Eq for DurationGenerationMode
impl StructuralPartialEq for DurationGenerationMode
Auto Trait Implementations§
impl Freeze for DurationGenerationMode
impl RefUnwindSafe for DurationGenerationMode
impl Send for DurationGenerationMode
impl Sync for DurationGenerationMode
impl Unpin for DurationGenerationMode
impl UnsafeUnpin for DurationGenerationMode
impl UnwindSafe for DurationGenerationMode
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T, F> Filter<F, Vec<T>> for T
impl<T, F> Filter<F, Vec<T>> for T
Source§fn select_filtered(filter: F) -> Vec<T>
fn select_filtered(filter: F) -> Vec<T>
Filter options based on the given predicate.
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> WithContract for T
impl<T> WithContract for T
Source§fn with_contract<C>(contract: C) -> ContractedElicitation<Self, C>
fn with_contract<C>(contract: C) -> ContractedElicitation<Self, C>
Attach a contract to this type’s elicitation. Read more