Trait nix_compat::nix_daemon::de::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 { ... }
}
Expand description
A data structure that can be deserialized from the Nix daemon worker protocol.
Required Methods§
Provided Methods§
fn deserialize<R>( reader: &mut R, ) -> impl Future<Output = Result<Self, R::Error>> + Send + '_
Object Safety§
This trait is not object safe.