async fn put_bin(&self, key: &str, value: &[u8]) -> ClientResult<()> {
        let path = self.key_to_path(key)?;

        tokio::fs::write(&path, value).await
            .map_err(|err| Error::local_storage_error(err))
    }
/// Put binary value by a given key into the storage
Put binary value by a given key into the storage
Put binary value by a given key into the storage
async fn put_bin(&self, key: &str, value: &[u8]) -> ClientResult<()> {
        let path = self.key_to_path(key)?;
        tokio::fs::write(&path, value).await
            .map_err(|err| Error::local_storage_error(err))
    }
async fn put_bin ( & self , key : & str , value : & [ u8 ] ) -> ClientResult < ( ) > { let path = self . key_to_path ( key ) ? ; tokio :: fs :: write ( & path , value ) . await . map_err ( | err | Error :: local_storage_error ( err ) ) }
Put binary value by a given key into the storage
Put binary value by a given key into the storage
&self
key
&str
value
&[u8]