title: What is an assignment with a class name and arguments called in Scala syntax?
body: <p>i saw some code snippets like below:</p>
  
  <pre><code>val future = testActor ? Running()
  val Success(running: Boolean) = future.value.get
  </code></pre>
  
  <p>So <code>future</code> is of type <code>Future</code>, what makes me confusing is the way it assign value to variable <code>running</code>.</p>
  
  <p>Can anyone explain to me what is this <code>val Success(running: Boolean)</code> called in scala?</p>
  
  <p>Thanks</p>