2016-05-27 22:58:25 +00:00
|
|
|
pub( super ) enum WriteState<D> {
|
|
|
|
WriteId {
|
|
|
|
id: U64Writer,
|
|
|
|
size: U64Writer,
|
|
|
|
payload: Option<Writer<D>>,
|
|
|
|
},
|
|
|
|
WriteSize {
|
|
|
|
size: U64Writer,
|
|
|
|
payload: Option<Writer<D>>,
|
|
|
|
},
|
|
|
|
WriteData(Writer<D>),
|
|
|
|
}
|
|
|
|
|
|
|
|
pub( crate ) enum WriteState<D> {
|
|
|
|
WriteId {
|
|
|
|
id: U64Writer,
|
|
|
|
size: U64Writer,
|
|
|
|
payload: Option<Writer<D>>,
|
|
|
|
},
|
|
|
|
WriteSize {
|
|
|
|
size: U64Writer,
|
|
|
|
payload: Option<Writer<D>>,
|
|
|
|
},
|
|
|
|
WriteData(Writer<D>),
|
|
|
|
}
|
|
|
|
|
2017-10-28 05:41:58 +00:00
|
|
|
crate enum WriteState<D> {
|
|
|
|
WriteId {
|
|
|
|
id: U64Writer,
|
|
|
|
size: U64Writer,
|
|
|
|
payload: Option<Writer<D>>,
|
|
|
|
},
|
|
|
|
WriteSize {
|
|
|
|
size: U64Writer,
|
|
|
|
payload: Option<Writer<D>>,
|
|
|
|
},
|
|
|
|
WriteData(Writer<D>),
|
|
|
|
}
|
|
|
|
|
2017-06-06 05:00:21 +00:00
|
|
|
pub(in ::global:: path :: to::some_mod ) enum WriteState<D> {
|
2016-05-27 22:58:25 +00:00
|
|
|
WriteId {
|
|
|
|
id: U64Writer,
|
|
|
|
size: U64Writer,
|
|
|
|
payload: Option<Writer<D>>,
|
|
|
|
},
|
|
|
|
WriteSize {
|
|
|
|
size: U64Writer,
|
|
|
|
payload: Option<Writer<D>>,
|
|
|
|
},
|
|
|
|
WriteData(Writer<D>),
|
|
|
|
}
|
|
|
|
|
2017-06-06 05:00:21 +00:00
|
|
|
pub( in local:: path :: to::some_mod ) enum WriteState<D> {
|
2016-05-27 22:58:25 +00:00
|
|
|
WriteId {
|
|
|
|
id: U64Writer,
|
|
|
|
size: U64Writer,
|
|
|
|
payload: Option<Writer<D>>,
|
|
|
|
},
|
|
|
|
WriteSize {
|
|
|
|
size: U64Writer,
|
|
|
|
payload: Option<Writer<D>>,
|
|
|
|
},
|
|
|
|
WriteData(Writer<D>),
|
|
|
|
}
|