pub enum AdapterError {
Show 19 variants
TimeoutCommand(TimeoutError),
SpawnAdapter(PathBuf, Error),
ParseResponse(MessageError),
RequestWrite(MessageError),
StdinHandle,
StdoutHandle,
StderrHandle,
ReadStderr(Error),
ReadLine(Error),
Wait(Error),
Failed(i32),
Signal,
NotTriggered(Response),
NoFirstMessage,
NoSecondMessage,
NotFinished(Response),
TooMany(Response),
UpdateRun(DbError),
Notif(NotificationError),
}
Variants§
TimeoutCommand(TimeoutError)
Error from TimeoutCommand
or [RunningProcess
].
SpawnAdapter(PathBuf, Error)
Error from spawning a sub-process.
ParseResponse(MessageError)
Error creating Response from a string.
RequestWrite(MessageError)
Request writing failure.
StdinHandle
Error getting the file handle for the adapter’s stdin.
StdoutHandle
Error getting the file handle for the adapter’s stdout.
StderrHandle
Error getting the file handle for the adapter’s stderr.
ReadStderr(Error)
Error reading adapter’s stderr.
ReadLine(Error)
Wait(Error)
Waiting for child process failed.
Failed(i32)
Child process failed.
Signal
Child process was killed.
NotTriggered(Response)
First message is not Response::Triggered
NoFirstMessage
There was no first response from adapter.
NoSecondMessage
There was no second response from adapter.
NotFinished(Response)
Second message is not Response::Finished
TooMany(Response)
Too many messages from adapter.
UpdateRun(DbError)
Could no update run in database.
Notif(NotificationError)
Could not send notification of changes to CI runs.
Trait Implementations§
Source§impl Debug for AdapterError
impl Debug for AdapterError
Source§impl Display for AdapterError
impl Display for AdapterError
Source§impl Error for AdapterError
impl Error for AdapterError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<NotificationError> for AdapterError
impl From<NotificationError> for AdapterError
Source§fn from(source: NotificationError) -> Self
fn from(source: NotificationError) -> Self
Converts to this type from the input type.
Source§impl From<TimeoutError> for AdapterError
impl From<TimeoutError> for AdapterError
Source§fn from(source: TimeoutError) -> Self
fn from(source: TimeoutError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for AdapterError
impl !RefUnwindSafe for AdapterError
impl Send for AdapterError
impl Sync for AdapterError
impl Unpin for AdapterError
impl !UnwindSafe for AdapterError
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