pub enum TraciError {
Connection(Error),
Protocol(String),
SimulationError(String),
NotImplemented(String),
SimulationEnd,
}Expand description
All errors that can be returned by the TraCI client.
Variants§
Connection(Error)
A TCP/IP I/O error occurred (connect, send, receive, …).
Protocol(String)
The server responded with a protocol-level error (wrong command id, bad message length, unexpected type tag, …).
SimulationError(String)
The SUMO server returned RTYPE_ERR for a command we sent.
NotImplemented(String)
The SUMO server replied that the requested command is not implemented.
SimulationEnd
SUMO has reached the configured end time and closed the simulation.
Returned by [TraciClient::simulation_step] when CMD_CLOSE is received.
Trait Implementations§
Source§impl Debug for TraciError
impl Debug for TraciError
Source§impl Display for TraciError
impl Display for TraciError
Source§impl Error for TraciError
impl Error for TraciError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns 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()
Auto Trait Implementations§
impl Freeze for TraciError
impl !RefUnwindSafe for TraciError
impl Send for TraciError
impl Sync for TraciError
impl Unpin for TraciError
impl UnsafeUnpin for TraciError
impl !UnwindSafe for TraciError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more