blob: fa2103745390ec84da110e75003e6bc96abc4e6a [file] [log] [blame]
// WARNING: This file is machine generated by fidlgen.
#![feature(futures_api, pin, arbitrary_self_types, nll)]
#![allow(warnings)]
extern crate fuchsia_async;
extern crate fuchsia_zircon as zx;
#[macro_use]
extern crate fidl;
#[macro_use]
extern crate futures;
use fidl::encoding::{Encodable, Decodable};
use futures::{Future, Stream, StreamExt};
use std::ops::Deref;
#[derive(Debug, PartialEq)]
pub struct Empty;
impl fidl::encoding::Encodable for Empty {
fn inline_align(&self) -> usize { 1 }
fn inline_size(&self) -> usize { 1 }
fn encode(&mut self, encoder: &mut fidl::encoding::Encoder) -> fidl::Result<()> {
fidl_encode!(&mut 0u8, encoder)
}
}
impl fidl::encoding::Decodable for Empty {
fn inline_align() -> usize { 1 }
fn inline_size() -> usize { 1 }
fn new_empty() -> Self { Empty }
fn decode(&mut self, decoder: &mut fidl::encoding::Decoder) -> fidl::Result<()> {
let mut x = 0u8;
fidl_decode!(&mut x, decoder)?;
if x == 0 {
Ok(())
} else {
Err(fidl::Error::Invalid)
}
}
}
impl fidl::encoding::Autonull for Empty {}