Trait nix_compat::wire::ser::NixSerialize

source ·
pub trait NixSerialize {
    // Required method
    fn serialize<W>(
        &self,
        writer: &mut W,
    ) -> impl Future<Output = Result<(), W::Error>> + Send
       where W: NixWrite;
}

Required Methods§

source

fn serialize<W>( &self, writer: &mut W, ) -> impl Future<Output = Result<(), W::Error>> + Send
where W: NixWrite,

Write a value to the writer.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl NixSerialize for &str

source§

async fn serialize<W>(&self, writer: &mut W) -> Result<(), W::Error>
where W: NixWrite,

source§

impl NixSerialize for Option<CAHash>

source§

async fn serialize<W>(&self, writer: &mut W) -> Result<(), W::Error>
where W: NixWrite,

source§

impl NixSerialize for Option<UnkeyedValidPathInfo>

source§

async fn serialize<W>(&self, writer: &mut W) -> Result<(), W::Error>
where W: NixWrite,

source§

impl NixSerialize for Option<StorePath<String>>

source§

async fn serialize<W>(&self, writer: &mut W) -> Result<(), W::Error>
where W: NixWrite,

source§

impl NixSerialize for bool

source§

async fn serialize<W>(&self, writer: &mut W) -> Result<(), W::Error>
where W: NixWrite,

source§

impl NixSerialize for i64

source§

async fn serialize<W>(&self, writer: &mut W) -> Result<(), W::Error>
where W: NixWrite,

source§

impl NixSerialize for str

source§

async fn serialize<W>(&self, writer: &mut W) -> Result<(), W::Error>
where W: NixWrite,

source§

impl NixSerialize for u8

source§

async fn serialize<W>(&self, writer: &mut W) -> Result<(), W::Error>
where W: NixWrite,

source§

impl NixSerialize for u16

source§

async fn serialize<W>(&self, writer: &mut W) -> Result<(), W::Error>
where W: NixWrite,

source§

impl NixSerialize for u32

source§

async fn serialize<W>(&self, writer: &mut W) -> Result<(), W::Error>
where W: NixWrite,

source§

impl NixSerialize for u64

source§

async fn serialize<W>(&self, writer: &mut W) -> Result<(), W::Error>
where W: NixWrite,

source§

impl NixSerialize for ()

source§

async fn serialize<W>(&self, _writer: &mut W) -> Result<(), W::Error>
where W: NixWrite,

source§

impl NixSerialize for usize

source§

async fn serialize<W>(&self, writer: &mut W) -> Result<(), W::Error>
where W: NixWrite,

source§

impl NixSerialize for Bytes

source§

async fn serialize<W>(&self, writer: &mut W) -> Result<(), W::Error>
where W: NixWrite,

source§

impl NixSerialize for String

source§

async fn serialize<W>(&self, writer: &mut W) -> Result<(), W::Error>
where W: NixWrite,

source§

impl<'a> NixSerialize for &'a [u8]

source§

async fn serialize<W>(&self, writer: &mut W) -> Result<(), W::Error>
where W: NixWrite,

source§

impl<K, V> NixSerialize for BTreeMap<K, V>
where K: NixSerialize + Ord + Send + Sync, V: NixSerialize + Send + Sync,

source§

fn serialize<W>( &self, writer: &mut W, ) -> impl Future<Output = Result<(), W::Error>> + Send
where W: NixWrite,

source§

impl<T> NixSerialize for Vec<T>
where T: NixSerialize + Send + Sync,

source§

fn serialize<W>( &self, writer: &mut W, ) -> impl Future<Output = Result<(), W::Error>> + Send
where W: NixWrite,

Implementors§