pub enum AttemptRole {
Primary,
Retry,
Fallback,
}Expand description
Which kind of external attempt is proposed.
Variants§
Primary
The first attempt on the bound backend.
Retry
A further attempt on the same target.
Fallback
The first attempt on a declared fallback target.
Trait Implementations§
Source§impl Clone for AttemptRole
impl Clone for AttemptRole
impl Copy for AttemptRole
Source§impl Debug for AttemptRole
impl Debug for AttemptRole
Source§impl<'de> Deserialize<'de> for AttemptRole
impl<'de> Deserialize<'de> for AttemptRole
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 AttemptRole
Source§impl JsonSchema for AttemptRole
impl JsonSchema for AttemptRole
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for AttemptRole
impl PartialEq for AttemptRole
Source§impl Serialize for AttemptRole
impl Serialize for AttemptRole
impl StructuralPartialEq for AttemptRole
Auto Trait Implementations§
impl Freeze for AttemptRole
impl RefUnwindSafe for AttemptRole
impl Send for AttemptRole
impl Sync for AttemptRole
impl Unpin for AttemptRole
impl UnsafeUnpin for AttemptRole
impl UnwindSafe for AttemptRole
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