Enum mpc_relay_server::Error
source · pub enum Error {
Show 17 variants
NotFile(PathBuf),
PermissionDenied,
KeyFileRequired,
KeyNotFound(PathBuf),
PeerAlreadyExists,
PeerNotFound(String),
NoParentDir,
NotHandshakeState,
SessionNotFound(SessionId),
NotSessionParticipant(SessionId, String),
Io(Error),
Protocol(Error),
Axum(Error),
Snow(Error),
Toml(Error),
HeaderValue(InvalidHeaderValue),
BufferMpscSend(SendError<Vec<u8>>),
}Expand description
Errors generated by the relay server.
Variants§
NotFile(PathBuf)
Error generated when a file is expected.
PermissionDenied
Error generated when permission is denied.
KeyFileRequired
Error generated when the config server key file was not specified.
KeyNotFound(PathBuf)
Error generated when the config server key file was not found.
PeerAlreadyExists
Error generated attempting to handshake with a peer that already exists.
PeerNotFound(String)
Error generated when a peer could not be found.
NoParentDir
Error generated when a file does not have a parent directory.
NotHandshakeState
Error generated when a participant expects to be in the handshake protocol state.
SessionNotFound(SessionId)
Error generated when a session could not be found.
NotSessionParticipant(SessionId, String)
Error generated attempting to relay to a peer in the context of a session but the target peer is not a session participant.
Io(Error)
Error generated by input/output.
Protocol(Error)
Error generated by the protocol library.
Axum(Error)
Error generated by the web server library.
Snow(Error)
Error generated by the noise protocol library.
Toml(Error)
Error generated parsing TOML.
HeaderValue(InvalidHeaderValue)
Error generated when a header value is invalid.
BufferMpscSend(SendError<Vec<u8>>)
Error generated sending a buffer over a channel.