pub struct Wandbox { /* private fields */ }
Expand description

The main cache that holds on to the compiler cache

Implementations

Initializes the cache for Wandbox requests

You may also choose to block certain compilers or languages from being supported. This is useful if wandbox has any issues with certain compilers or languages.

Arguments
  • comps - A vector of compiler identifiers that the library should ignore
  • langs - A vector of language identifiers that the library should ignore
Example
use std::collections::HashSet;
use wandbox::Wandbox;

#[tokio::main]
async fn main() {
   let mut set : HashSet<String> = HashSet::new();
   set.insert(String::from("gcc-head"));

   let wbox : Wandbox = match Wandbox::new(Some(set), None).await {
       Ok(wbox) => wbox,
       Err(e) => return println!("{}", e)
   };
}

Gets a list of compilers given a certain language

Arguments
  • lang - The language identifier to return the compilers for

Returns a list of every language

Determines if the compiler string supplied is a valid compiler

Arguments
  • c - compiler identifier to check for

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more