[][src]Struct qutescript::env::Fifo

pub struct Fifo { /* fields omitted */ }

FIFO file to write commands to.

Implementations

impl Fifo[src]

pub fn new<P: AsRef<Path>>(path: P) -> Self[src]

pub fn file(&self) -> Result<File, Error>[src]

Open the FIFO as a file.

pub fn write(&self, message: &str) -> Result<(), Error>[src]

Write a string to the FIFO file.

On Unix/macOS, this is a named pipe and commands written to it will get executed immediately. On Windows, this is a regular file, and the commands in it will be executed as soon as your userscript terminates.

Trait Implementations

impl Clone for Fifo[src]

impl Debug for Fifo[src]

Auto Trait Implementations

impl RefUnwindSafe for Fifo

impl Send for Fifo

impl Sync for Fifo

impl Unpin for Fifo

impl UnwindSafe for Fifo

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, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.