pub enum Error {
Show 22 variants
NotFile(PathBuf),
PermissionDenied,
KeyFileRequired,
KeyNotFound(PathBuf),
PeerAlreadyExists,
PeerNotFound(String),
NoParentDir,
NotHandshakeState,
MeetingNotFound(MeetingId),
MeetingFull(MeetingId),
SessionNotFound(SessionId),
NotSessionParticipant(SessionId, String),
SessionTimeoutConfig,
SessionWaitConfig,
Io(Error),
Protocol(Error),
Axum(Error),
Snow(Error),
Toml(Error),
HeaderValue(InvalidHeaderValue),
BufferMpscSend(SendError<Vec<u8>>),
MessageMpscSend(SendError<Message>),
}
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.
MeetingNotFound(MeetingId)
Error generated when a meeting could not be found.
MeetingFull(MeetingId)
Error generated when a participant attempts to join a meeting that is full.
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.
SessionTimeoutConfig
Error generated when the session timeout is not greater than the interval.
SessionWaitConfig
Error generated when the session wait timeout is not greater than the wait interval.
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.
MessageMpscSend(SendError<Message>)
Error generated sending a message over a channel.