Skip to main content

NixDeserialize

Trait NixDeserialize 

Source
pub trait NixDeserialize: Sized {
    // Required method
    fn try_deserialize<R>(
        reader: &mut R,
    ) -> impl Future<Output = Result<Option<Self>, R::Error>> + Send + '_
       where R: ?Sized + NixRead + Send;

    // Provided method
    fn deserialize<R>(
        reader: &mut R,
    ) -> impl Future<Output = Result<Self, R::Error>> + Send + '_
       where R: ?Sized + NixRead + Send { ... }
}
Available on crate feature wire only.
Expand description

A data structure that can be deserialized from the Nix daemon worker protocol.

Required Methods§

Source

fn try_deserialize<R>( reader: &mut R, ) -> impl Future<Output = Result<Option<Self>, R::Error>> + Send + '_
where R: ?Sized + NixRead + Send,

Read a value from the reader. This returns an Option to support gracefull shutdown.

Provided Methods§

Source

fn deserialize<R>( reader: &mut R, ) -> impl Future<Output = Result<Self, R::Error>> + Send + '_
where R: ?Sized + NixRead + Send,

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl NixDeserialize for Option<CAHash>

Available on crate feature nix-compat-derive only.
Source§

async fn try_deserialize<R>(reader: &mut R) -> Result<Option<Self>, R::Error>
where R: ?Sized + NixRead + Send,

Source§

impl NixDeserialize for Option<Microseconds>

Available on crate feature daemon only.
Source§

async fn try_deserialize<R>(reader: &mut R) -> Result<Option<Self>, R::Error>
where R: ?Sized + NixRead + Send,

Available on crate feature wire only.
Source§

impl NixDeserialize for Option<StorePath>

Available on crate feature nix-compat-derive only.
Source§

async fn try_deserialize<R>(reader: &mut R) -> Result<Option<Self>, R::Error>
where R: ?Sized + NixRead + Send,

Source§

impl NixDeserialize for bool

Source§

async fn try_deserialize<R>(reader: &mut R) -> Result<Option<Self>, R::Error>
where R: ?Sized + NixRead + Send,

Source§

impl NixDeserialize for i64

Available on crate feature nix-compat-derive only.
Source§

fn try_deserialize<R>( reader: &mut R, ) -> impl Future<Output = Result<Option<Self>, R::Error>> + Send + '_
where R: ?Sized + NixRead + Send,

Source§

impl NixDeserialize for u8

Available on crate feature nix-compat-derive only.
Source§

fn try_deserialize<R>( reader: &mut R, ) -> impl Future<Output = Result<Option<Self>, R::Error>> + Send + '_
where R: ?Sized + NixRead + Send,

Source§

impl NixDeserialize for u16

Available on crate feature nix-compat-derive only.
Source§

fn try_deserialize<R>( reader: &mut R, ) -> impl Future<Output = Result<Option<Self>, R::Error>> + Send + '_
where R: ?Sized + NixRead + Send,

Source§

impl NixDeserialize for u32

Available on crate feature nix-compat-derive only.
Source§

fn try_deserialize<R>( reader: &mut R, ) -> impl Future<Output = Result<Option<Self>, R::Error>> + Send + '_
where R: ?Sized + NixRead + Send,

Source§

impl NixDeserialize for u64

Source§

async fn try_deserialize<R>(reader: &mut R) -> Result<Option<Self>, R::Error>
where R: ?Sized + NixRead + Send,

Source§

impl NixDeserialize for usize

Source§

async fn try_deserialize<R>(reader: &mut R) -> Result<Option<Self>, R::Error>
where R: ?Sized + NixRead + Send,

Source§

impl NixDeserialize for String

Source§

async fn try_deserialize<R>(reader: &mut R) -> Result<Option<Self>, R::Error>
where R: ?Sized + NixRead + Send,

Source§

impl NixDeserialize for BString

Source§

async fn try_deserialize<R>(reader: &mut R) -> Result<Option<Self>, R::Error>
where R: ?Sized + NixRead + Send,

Source§

impl NixDeserialize for Bytes

Source§

async fn try_deserialize<R>(reader: &mut R) -> Result<Option<Self>, R::Error>
where R: ?Sized + NixRead + Send,

Source§

impl<K, V> NixDeserialize for BTreeMap<K, V>

Source§

fn try_deserialize<R>( reader: &mut R, ) -> impl Future<Output = Result<Option<Self>, R::Error>> + Send + '_
where R: ?Sized + NixRead + Send,

Source§

impl<T> NixDeserialize for BTreeSet<T>
where T: NixDeserialize + Ord + Send,

Source§

fn try_deserialize<R>( reader: &mut R, ) -> impl Future<Output = Result<Option<Self>, R::Error>> + Send + '_
where R: ?Sized + NixRead + Send,

Source§

impl<T> NixDeserialize for Vec<T>
where T: NixDeserialize + Send,

Source§

fn try_deserialize<R>( reader: &mut R, ) -> impl Future<Output = Result<Option<Self>, R::Error>> + Send + '_
where R: ?Sized + NixRead + Send,

Implementors§

Source§

impl NixDeserialize for DerivedPath

Available on crate feature nix-compat-derive only.
Source§

impl NixDeserialize for VerbosityLevel

Available on crate feature nix-compat-derive only.
Source§

impl NixDeserialize for BuildMode

Available on crate feature daemon only.
Source§

impl NixDeserialize for BuildStatus

Available on crate feature daemon only.
Source§

impl NixDeserialize for Operation

Available on crate feature daemon only.
Source§

impl NixDeserialize for CAHash

Available on crate feature nix-compat-derive only.
Source§

impl NixDeserialize for HashAlgo

Available on crate feature nix-compat-derive only.
Source§

impl NixDeserialize for OutputName

Available on crate feature nix-compat-derive only.
Source§

impl NixDeserialize for LegacyDerivedPath

Available on crate feature nix-compat-derive only.
Source§

impl NixDeserialize for Signature<String>

Available on crate feature nix-compat-derive only.
Source§

impl NixDeserialize for BuildPaths

Available on crate feature daemon only.
Source§

impl NixDeserialize for BuildResult

Available on crate feature daemon only.
Source§

impl NixDeserialize for IgnoredZero

Available on crate feature daemon only.
Source§

impl NixDeserialize for KeyedBuildResult

Available on crate feature daemon only.
Source§

impl NixDeserialize for Microseconds

Available on crate feature daemon only.
Source§

impl NixDeserialize for NarHash

Available on crate feature daemon only.
Source§

impl NixDeserialize for QueryMissingResult

Available on crate feature daemon only.
Source§

impl NixDeserialize for QueryValidPaths

Available on crate feature daemon only.
Source§

impl NixDeserialize for UnkeyedValidPathInfo

Available on crate feature daemon only.
Source§

impl NixDeserialize for ValidPathInfo

Available on crate feature daemon only.
Source§

impl NixDeserialize for ClientSettings

Available on crate feature daemon only.
Source§

impl NixDeserialize for DrvOutput

Available on crate feature nix-compat-derive only.
Source§

impl NixDeserialize for Realisation

Available on crate feature nix-compat-derive only.
Source§

impl NixDeserialize for StorePath

Available on crate feature nix-compat-derive only.