[][src]Struct shade_runner::Watch

pub struct Watch {
    pub rx: Receiver<Result<Message, Error>>,
    // some fields omitted
}

Fields

rx: Receiver<Result<Message, Error>>

Methods

impl Watch[src]

pub fn create<T>(
    vertex: T,
    fragment: T,
    frequency: Duration
) -> Result<Self, Error> where
    T: AsRef<Path>, 
[src]

Paths to the vertex and fragment shaders. Frequency is how often the watcher will check the directory.

pub fn create_compute<T>(compute: T, frequency: Duration) -> Result<Self, Error> where
    T: AsRef<Path>, 
[src]

Auto Trait Implementations

impl Send for Watch

impl Unpin for Watch

impl !Sync for Watch

impl !UnwindSafe for Watch

impl !RefUnwindSafe for Watch

Blanket Implementations

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

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

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<T> BorrowMut<T> for T where
    T: ?Sized
[src]

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

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

impl<T> Content for T[src]