pub enum Error {
Show 26 variants
ConnectError(StatusCode, String),
ServerError(StatusCode, String),
NoReply,
PeerAlreadyExists,
PeerAlreadyExistsMaybeRace,
PeerNotFound(String),
NotHandshakeState,
NotTransportState,
InvalidPeerHandshakeMessage,
WebSocketSend,
MeetingIdentifiersNotUnique,
MeetingInitiatorNotExist,
NotSessionParticipant(String),
NoKeyInitAck,
StreamReunite,
Generic(Box<dyn Error + Send + Sync + 'static>),
Io(Error),
Protocol(Error),
Driver(Error),
Snow(Error),
Websocket(Error),
RequestMpscSend(SendError<InternalMessage>),
ResponseMpscSend(SendError<ResponseMessage>),
FrostEd25519Core(Error),
Cggmp(Error),
FrostEd25519(Error),
}
Expand description
Errors generated by the relay client.
Variants§
ConnectError(StatusCode, String)
Error generated attempting to connect to the websocket server when the response is not a 101 switching protocols status code.
ServerError(StatusCode, String)
Error generated by the server.
NoReply
Error generated if the client expects a reply but none was received.
PeerAlreadyExists
Error generated attempting to handshake with a peer that already exists.
PeerAlreadyExistsMaybeRace
Error generated attempting to handshake with a peer that already exists.
PeerNotFound(String)
Error generated when a peer could not be found.
NotHandshakeState
Error generated when a node expects to be in the handshake protocol state.
NotTransportState
Error generated when a node expects to be in the transport protocol state.
InvalidPeerHandshakeMessage
Error generated when the wrong type of message is encountered during a peer to peer handshake.
WebSocketSend
Error generated when the client fails to write to the websocket.
MeetingIdentifiersNotUnique
Error generated when meeting identifiers are not unique.
MeetingInitiatorNotExist
Error generated when the meeting initiator does not exist in the list of meeting point identifiers.
NotSessionParticipant(String)
Error generated when the user’s public key is not in the list of session participants.
NoKeyInitAck
Could not locate ack for key init phase.
StreamReunite
Error generated when the native client fails to reunite the stream and sink.
Generic(Box<dyn Error + Send + Sync + 'static>)
Generic boxed error.
Io(Error)
Error generated by input/output.
Protocol(Error)
Error generated by the protocol library.
Driver(Error)
Error generated by the driver library.
Snow(Error)
Error generated by the noise protocol library.
Websocket(Error)
Error generated by the client websocket library.
RequestMpscSend(SendError<InternalMessage>)
Error generated sending a request over a channel.
ResponseMpscSend(SendError<ResponseMessage>)
Error generated sending a response over a channel.
FrostEd25519Core(Error)
FROST library error.
Cggmp(Error)
CGGMP library error.
FrostEd25519(Error)
FROST library error.