pub fn ensure_supported(&self) -> Result<(), Error> {
        if self.is_supported() {
            Ok(())
        } else {
            Err(Error::unsupported_rpc_version(
                self.0.to_string(),
                SUPPORTED_VERSION.to_string(),
            ))
        }
    }
/// Ensure we have a supported version or return an error
Ensure we have a supported version or return an error
Ensure we have a supported version or return an error
pub fn ensure_supported(&self) -> Result<(), Error> {
        if self.is_supported() {
            Ok(())
        } else {
            Err(Error::unsupported_rpc_version(
                self.0.to_string(),
                SUPPORTED_VERSION.to_string(),
            ))
        }
    }
pub fn ensure_supported ( & self ) -> Result < ( ) , Error > { if self . is_supported ( ) { Ok ( ( ) ) } else { Err ( Error :: unsupported_rpc_version ( self . 0 . to_string ( ) , SUPPORTED_VERSION . to_string ( ) , ) ) } }
Ensure we have a supported version or return an error
Ensure we have a supported version or return an error
&self