Skip to content

Instantly share code, notes, and snippets.

@jwilm
Created September 6, 2016 19:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jwilm/7fa8c8c0605932d99b9a878553a63e20 to your computer and use it in GitHub Desktop.
Save jwilm/7fa8c8c0605932d99b9a878553a63e20 to your computer and use it in GitHub Desktop.
web_push_test! {
web_push_response_created => {
response: web::Response::Created { uri: String::new() },
remaining: 0,
successful: 1,
errored: 0,
sending_done: true,
},
web_push_response_accepted => {
response: web::Response::Accepted { uri: String::new() },
remaining: 0,
successful: 1,
errored: 0,
sending_done: true,
},
web_push_response_payload_too_large => {
response: web::Response::PayloadTooLarge,
remaining: 0,
successful: 0,
errored: 1,
sending_done: true,
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment