pub async fn save_state<I, S>(&mut self, requests: I) -> Result<()>
    where
        I: IntoIterator<Item = S>,
        S: Into<StateRequest>,
    {
        self.0
            .save_state(Request::new(SaveStateEnvelope {
                requests: requests.into_iter().map(|state| state.into()).collect(),
            }))
            .await
            .map(|res| res.into_inner())
            .map_err(Error::from)
    }
/// Save an array of state objects.
Save an array of state objects.
Save an array of state objects .
pub async fn save_state<I, S>(&mut self, requests: I) -> Result<()>
    where
        I: IntoIterator<Item = S>,
        S: Into<StateRequest>,
    {
        self.0
            .save_state(Request::new(SaveStateEnvelope {
                requests: requests.into_iter().map(|state| state.into()).collect(),
            }))
            .await
            .map(|res| res.into_inner())
            .map_err(Error::from)
    }
pub async fn save_state < I , S > ( & mut self , requests : I ) -> Result < ( ) > where I : IntoIterator < Item = S > , S : Into < StateRequest > , { self . 0 . save_state ( Request :: new ( SaveStateEnvelope { requests : requests . into_iter ( ) . map ( | state | state . into ( ) ) . collect ( ) , } ) ) . await . map ( | res | res . into_inner ( ) ) . map_err ( Error :: from ) }
Save an array of state objects.
Save an array of state objects .
&mut self
requests
I
&mut self
requests
I