This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package example | |
sealed trait ApiResult | |
object ApiResult { | |
/* Returns all notes */ | |
case class ListNotes(notes: Seq[Note]) extends ApiResult | |
/* Returns a specific note found */ | |
case class FoundNote(note: Note) extends ApiResult |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
extern crate iron; | |
extern crate mount; | |
extern crate router; | |
extern crate iron_sessionstorage; | |
use iron::prelude::*; | |
use iron_sessionstorage::SessionRequestExt; | |
use iron_sessionstorage::SessionStorage; | |
use iron_sessionstorage::backends::SignedCookieBackend; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// This code sample needs the dependencies: | |
// tokio = "0.1" | |
// tokio-process = "0.2" | |
use tokio::prelude::*; | |
use std::process::{Command, Stdio}; | |
use tokio_process::CommandExt; | |
use std::time::Duration; | |
fn main() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@nix { "action": "setPhase", "phase": "unpackPhase" } | |
unpacking sources | |
unpacking source archive /nix/store/zjdbxzj9sm5a22jb50hj3c07nlsc70mv-source | |
source root is source | |
@nix { "action": "setPhase", "phase": "patchPhase" } | |
patching sources | |
@nix { "action": "setPhase", "phase": "configurePhase" } | |
configuring | |
renamed '/build/tmp.z3IxkHVn9X/f/.packages' -> './.packages' | |
renamed '/build/tmp.z3IxkHVn9X/f/.flutter-plugins' -> './.flutter-plugins' |