pub enum GetLogsError {
ProcessNotFound(ProcessId),
ManagerCommunicationError(RecvError),
LoggingTypeWasNotConfigured(String),
LogReaderNotFound(ProcessId),
UnExpectedIoError(Error),
}
Expand description
Error type returned when collecting logs from the process.
Variants§
ProcessNotFound(ProcessId)
The process with given ID was not found (the ID is wrong or the process has been already killed).
ManagerCommunicationError(RecvError)
Cannot communicate with spawned process manager. Probably process manager task has been aborted.
LoggingTypeWasNotConfigured(String)
Cannot get logs because a proper LoggingType
has not been configured for the process.
LogReaderNotFound(ProcessId)
The task used to reading logs from a process has been killed.
This error “shouldn’t” normally occur because the task is aborted when a process is being killed. And after this ProcessNotFound
will be returned.
UnExpectedIoError(Error)
An unexpected IO error occurred when reading logs from the process.
Trait Implementations§
Source§impl Debug for GetLogsError
impl Debug for GetLogsError
Source§impl Display for GetLogsError
impl Display for GetLogsError
Source§impl Error for GetLogsError
impl Error for GetLogsError
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<Error> for GetLogsError
impl From<Error> for GetLogsError
Auto Trait Implementations§
impl Freeze for GetLogsError
impl !RefUnwindSafe for GetLogsError
impl Send for GetLogsError
impl Sync for GetLogsError
impl Unpin for GetLogsError
impl !UnwindSafe for GetLogsError
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