pub enum Error {
Show 18 variants
OpenSSHError(Error),
Utf8DecodeError(Utf8Error),
TokioJoinError(JoinError),
TmuxCommandFailed(String, ExitStatus, String, String),
ParseExitStatusError(ParseIntError),
ChannelSendError(Box<SendError<CommandReturn>>),
QuitChannelSendError(Box<SendError<()>>),
ChannelClosed,
UnexpectedSplitResult(Vec<String>),
FifoReadError(Error),
FifoReadingAborted,
FifoReadingEnded,
ParsePaneId(ParseIntError),
UnexpectedCharacterInTmuxSessionName(String),
UnexpectedCharacterInTmuxWindowName(String),
UnexpectedSplitResultWhenParsingTmuxWindow(Vec<String>),
UnexpectedSplitResultWhenParsingTmuxPane(Vec<String>),
CommandUuidParseError(Error),
}
Expand description
the error type for the library
Variants§
OpenSSHError(Error)
error in the openssh crate
Utf8DecodeError(Utf8Error)
error decoding Utf-8
TokioJoinError(JoinError)
error joining tokio task
TmuxCommandFailed(String, ExitStatus, String, String)
failure when running a remote tmux command
ParseExitStatusError(ParseIntError)
error parsing an exit status value from a string
ChannelSendError(Box<SendError<CommandReturn>>)
error sending data through the channel from the task watching the fifo for tmux messages to the future waiting for the command result
QuitChannelSendError(Box<SendError<()>>)
error sending data through the channel from the close function to the task watching the fifo
ChannelClosed
channel was closed when we were polling it before we got a value
UnexpectedSplitResult(Vec<String>)
unexpected result splitting fifo message
FifoReadError(Error)
error reading from fifo
FifoReadingAborted
error in fifo reader task means all remaining channels get this error as a message
FifoReadingEnded
end of loop in fifo reader task means all remaining channels get this error as a message
ParsePaneId(ParseIntError)
error parsing tmux pane id
UnexpectedCharacterInTmuxSessionName(String)
unexpected character in tmux session name
UnexpectedCharacterInTmuxWindowName(String)
unexpected character in tmux window name
UnexpectedSplitResultWhenParsingTmuxWindow(Vec<String>)
unexpected split result (e.g. three elements) when splitting on colon in window name
UnexpectedSplitResultWhenParsingTmuxPane(Vec<String>)
unexpected split result (e.g. three elements) when splitting on dot in window name
CommandUuidParseError(Error)
error parsing command id as uuid