Struct tide_rhai::RhaiDir[][src]

pub struct RhaiDir { /* fields omitted */ }

Struct that implements an Endpoint to and matches requests to rhai files.

Implementations

impl RhaiDir[src]

pub fn new(prefix: &str, dir: impl AsRef<Path>) -> Result<Self>[src]

 use tide_rhai::RhaiDir;
 let mut app = tide::new();
 app.at("/*")
 .get(RhaiDir::new("/*", "./examples/app/").unwrap());

Trait Implementations

impl<State> Endpoint<State> for RhaiDir where
    State: Clone + Send + Sync + 'static, 
[src]

Auto Trait Implementations

impl RefUnwindSafe for RhaiDir

impl Send for RhaiDir

impl Sync for RhaiDir

impl Unpin for RhaiDir

impl UnwindSafe for RhaiDir

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> WithSubscriber for T[src]