use zbus::proxy;
use crate::error;
#[proxy(
interface = "org.freedesktop.UDisks2.NVMe.Fabrics",
default_service = "org.freedesktop.UDisks2",
default_path = "/org/freedesktop/UDisks2/NVMe"
)]
pub trait Fabrics {
fn disconnect(
&self,
options: std::collections::HashMap<&str, zbus::zvariant::Value<'_>>,
) -> error::Result<()>;
#[zbus(property, name = "HostID")]
fn host_id(&self) -> error::Result<Vec<u8>>;
#[zbus(property, name = "HostNQN")]
fn host_nqn(&self) -> error::Result<Vec<u8>>;
#[zbus(property)]
fn transport(&self) -> error::Result<String>;
#[zbus(property)]
fn transport_address(&self) -> error::Result<Vec<u8>>;
}