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