[−][src]Struct qutescript::env::Fifo
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
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,