use minicbor::{Decode, Encode};
#[derive(Debug, Clone, Decode, Encode, PartialEq, Eq)]
#[rustfmt::skip]
#[cbor(map)]
pub struct CreateTcpConnection {
#[n(1)] pub addr: String,
}
impl CreateTcpConnection {
pub fn new(addr: String) -> Self {
Self { addr }
}
}
#[derive(Debug, Clone, Decode, Encode, PartialEq, Eq)]
#[rustfmt::skip]
#[cbor(map)]
pub struct CreateTcpListener {
#[n(1)] pub addr: String,
}
impl CreateTcpListener {
pub fn new(addr: String) -> Self {
Self { addr }
}
}
#[derive(Debug, Clone, Decode, Encode)]
#[rustfmt::skip]
#[cbor(map)]
pub struct DeleteTransport {
#[n(1)] pub address: String,
}
impl DeleteTransport {
pub fn new(address: String) -> Self {
Self { address }
}
}