pub struct Pipe { /* private fields */ }Implementations§
Source§impl Pipe
impl Pipe
Sourcepub async fn new(pipe_file: PathBuf) -> Result<Self>
pub async fn new(pipe_file: PathBuf) -> Result<Self>
Create and listen to the named pipe.
§Errors
Will error if unable to mkfifo, likely a filesystem issue
such as inadequate permissions.
pub fn pipe_name() -> PathBuf
pub async fn get_next_command(&mut self) -> Option<Box<dyn Command>>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Pipe
impl RefUnwindSafe for Pipe
impl Send for Pipe
impl Sync for Pipe
impl Unpin for Pipe
impl UnwindSafe for Pipe
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more