fn encode_restore<S: Sink>( w: &mut Writer<S>, restore: Option<SubscriptionSpec>, ) -> Result<(), S::Error>