tango/corba/zmq/convert.rs
1//! Conversion utilities for the ZMQ binding.
2
3use crate::error::{Error, ErrorKind, reason};
4
5
6impl From<zmq::Error> for Error {
7 #[track_caller]
8 fn from(value: zmq::Error) -> Self {
9 Error::new(ErrorKind::Reason(reason::API_ZmqFailed))
10 .with_description(format!("{value}"))
11 .with_source(Box::new(value))
12 }
13}