Enum mpc_websocket::ServerError
source · pub enum ServerError {
NotDirectory(PathBuf),
ZeroPartyNumber,
PartyNumberOutOfRange,
PartyNumberAlreadyExists(Uuid),
NetAddrParse(AddrParseError),
Io(Error),
JsonRpcError(Error),
}
Expand description
Error thrown by the server.
Variants§
NotDirectory(PathBuf)
Error generated when a directory is expected.
ZeroPartyNumber
Error generated if party number is zero.
PartyNumberOutOfRange
Error generated if a party number is out of range.
PartyNumberAlreadyExists(Uuid)
Error generated if a party number already exists for a session.
NetAddrParse(AddrParseError)
Error generated parsing a socket address.
Io(Error)
Error generated by the std::io
module.
JsonRpcError(Error)
Error generated by the JSON-RPC services.
Trait Implementations§
source§impl Debug for ServerError
impl Debug for ServerError
source§impl Display for ServerError
impl Display for ServerError
source§impl Error for ServerError
impl Error for ServerError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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<AddrParseError> for ServerError
impl From<AddrParseError> for ServerError
source§fn from(source: AddrParseError) -> Self
fn from(source: AddrParseError) -> Self
Converts to this type from the input type.