pub enum IoErrorGenerationMode {
NotFound(String),
PermissionDenied(String),
ConnectionRefused(String),
ConnectionReset(String),
BrokenPipe(String),
AlreadyExists(String),
InvalidInput(String),
TimedOut(String),
UnexpectedEof(String),
Other(String),
}Expand description
Generation mode for std::io::Error.
Allows creating IO errors for testing without actual IO failures.
Variants§
NotFound(String)
File/directory not found error.
PermissionDenied(String)
Permission denied error.
ConnectionRefused(String)
Connection refused error.
ConnectionReset(String)
Connection reset error.
BrokenPipe(String)
Broken pipe error.
AlreadyExists(String)
Already exists error.
InvalidInput(String)
Invalid input error.
TimedOut(String)
Timeout error.
UnexpectedEof(String)
Unexpected EOF error.
Other(String)
Generic “other” error.
Implementations§
Trait Implementations§
Source§impl Clone for IoErrorGenerationMode
impl Clone for IoErrorGenerationMode
Source§fn clone(&self) -> IoErrorGenerationMode
fn clone(&self) -> IoErrorGenerationMode
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 IoErrorGenerationMode
impl Debug for IoErrorGenerationMode
Source§impl Elicitation for IoErrorGenerationMode
impl Elicitation for IoErrorGenerationMode
Source§async fn elicit(client: &ElicitClient) -> ElicitResult<Self>
async fn elicit(client: &ElicitClient) -> ElicitResult<Self>
Elicit a value of this type from the user via style-aware client. 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(
client: &ElicitClient,
) -> impl Future<Output = ElicitResult<(Self, Established<Is<Self>>)>> + Send
fn elicit_proven( client: &ElicitClient, ) -> impl Future<Output = ElicitResult<(Self, Established<Is<Self>>)>> + Send
Elicit a value with proof it inhabits type Self. Read more
Source§impl Hash for IoErrorGenerationMode
impl Hash for IoErrorGenerationMode
Source§impl PartialEq for IoErrorGenerationMode
impl PartialEq for IoErrorGenerationMode
Source§impl Prompt for IoErrorGenerationMode
impl Prompt for IoErrorGenerationMode
Source§impl Select for IoErrorGenerationMode
impl Select for IoErrorGenerationMode
impl Eq for IoErrorGenerationMode
impl StructuralPartialEq for IoErrorGenerationMode
Auto Trait Implementations§
impl Freeze for IoErrorGenerationMode
impl RefUnwindSafe for IoErrorGenerationMode
impl Send for IoErrorGenerationMode
impl Sync for IoErrorGenerationMode
impl Unpin for IoErrorGenerationMode
impl UnwindSafe for IoErrorGenerationMode
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<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> 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