#[non_exhaustive]pub enum MuseError {
ClientClosed,
TransportEnded,
SessionDiscarded(String),
PermissionProfileNotApplied {
requested: String,
served: Option<String>,
session_id: String,
},
Discarded {
command_id: String,
},
Transport(Error),
Spawn(SpawnError),
Msp(MspError),
Protocol(ProtocolError),
}Expand description
A typed failure returned by the public client and session facade.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
ClientClosed
The client was closed, so the call could not complete.
TransportEnded
The transport ended before the server answered, or had already ended when the call was made.
SessionDiscarded(String)
The session with this id was discarded: its transport ended on a client that is not durable, so nothing survives to resume.
PermissionProfileNotApplied
A start that required its permission profile could not prove the host
committed it. The session is open on the host, but no handle to it is
returned; resume it by session_id or start again.
Fields
Discarded
The command was discarded locally, because the last handle that could await it was dropped.
Transport(Error)
Reading from or writing to the transport failed.
Spawn(SpawnError)
The host process could not be started.
Msp(MspError)
The server refused the request with a typed MSP error.
Protocol(ProtocolError)
A failure the client raised itself rather than a typed MSP error from
the server. See ProtocolError.
Trait Implementations§
Source§impl Error for MuseError
impl Error for MuseError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()