[−][src]Struct wasi_common::virtfs::pipe::WritePipe
A virtual pipe write end.
Implementations
impl<W: Write + Any> WritePipe<W>
[src]
pub fn new(w: W) -> Self
[src]
Create a new pipe from a Write
type.
All Handle
write operations delegate to writing to this underlying writer.
pub fn from_shared(writer: Arc<RwLock<W>>) -> Self
[src]
Create a new pipe from a shareable Write
type.
All Handle
write operations delegate to writing to this underlying writer.
pub fn try_into_inner(self) -> Result<W, Self>
[src]
Try to convert this WritePipe<W>
back to the underlying W
type.
This will fail with Err(self)
if multiple references to the underlying W
exist.
impl WritePipe<Cursor<Vec<u8>>>
[src]
pub fn new_in_memory() -> Self
[src]
Create a new writable virtual pipe backed by a Vec<u8>
buffer.
Trait Implementations
impl<W: Write + Any> Clone for WritePipe<W>
[src]
fn clone(&self) -> Self
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<W: Debug + Write + Any> Debug for WritePipe<W>
[src]
impl<W: Write + Any> Handle for WritePipe<W>
[src]
fn as_any(&self) -> &dyn Any
[src]
fn try_clone(&self) -> Result<Box<dyn Handle>>
[src]
fn get_file_type(&self) -> Filetype
[src]
fn get_rights(&self) -> HandleRights
[src]
fn set_rights(&self, rights: HandleRights)
[src]
fn advise(
&self,
_advice: Advice,
_offset: Filesize,
_len: Filesize
) -> Result<()>
[src]
&self,
_advice: Advice,
_offset: Filesize,
_len: Filesize
) -> Result<()>
fn allocate(&self, _offset: Filesize, _len: Filesize) -> Result<()>
[src]
fn fdstat_set_flags(&self, _fdflags: Fdflags) -> Result<()>
[src]
fn filestat_get(&self) -> Result<Filestat>
[src]
fn filestat_set_size(&self, _st_size: Filesize) -> Result<()>
[src]
fn pwritev(&self, buf: &[IoSlice], offset: Filesize) -> Result<usize>
[src]
fn seek(&self, _offset: SeekFrom) -> Result<Filesize>
[src]
fn write_vectored(&self, iovs: &[IoSlice]) -> Result<usize>
[src]
fn create_directory(&self, _path: &str) -> Result<()>
[src]
fn openat(
&self,
_path: &str,
_read: bool,
_write: bool,
_oflags: Oflags,
_fd_flags: Fdflags
) -> Result<Box<dyn Handle>>
[src]
&self,
_path: &str,
_read: bool,
_write: bool,
_oflags: Oflags,
_fd_flags: Fdflags
) -> Result<Box<dyn Handle>>
fn link(
&self,
_old_path: &str,
_new_handle: Box<dyn Handle>,
_new_path: &str,
_follow: bool
) -> Result<()>
[src]
&self,
_old_path: &str,
_new_handle: Box<dyn Handle>,
_new_path: &str,
_follow: bool
) -> Result<()>
fn readlink(&self, _path: &str, _buf: &mut [u8]) -> Result<usize>
[src]
fn readlinkat(&self, _path: &str) -> Result<String>
[src]
fn rename(
&self,
_old_path: &str,
_new_handle: Box<dyn Handle>,
_new_path: &str
) -> Result<()>
[src]
&self,
_old_path: &str,
_new_handle: Box<dyn Handle>,
_new_path: &str
) -> Result<()>
fn remove_directory(&self, _path: &str) -> Result<()>
[src]
fn symlink(&self, _old_path: &str, _new_path: &str) -> Result<()>
[src]
fn unlink_file(&self, _path: &str) -> Result<()>
[src]
fn is_directory(&self) -> bool
[src]
fn is_tty(&self) -> bool
[src]
fn datasync(&self) -> Result<()>
[src]
fn fdstat_get(&self) -> Result<Fdflags>
[src]
fn filestat_set_times(
&self,
_atim: Timestamp,
_mtim: Timestamp,
_fst_flags: Fstflags
) -> Result<()>
[src]
&self,
_atim: Timestamp,
_mtim: Timestamp,
_fst_flags: Fstflags
) -> Result<()>
fn preadv(&self, _buf: &mut [IoSliceMut], _offset: u64) -> Result<usize>
[src]
fn read_vectored(&self, _iovs: &mut [IoSliceMut]) -> Result<usize>
[src]
fn readdir<'a>(
&'a self,
_cookie: Dircookie
) -> Result<Box<dyn Iterator<Item = Result<(Dirent, String)>> + 'a>>
[src]
&'a self,
_cookie: Dircookie
) -> Result<Box<dyn Iterator<Item = Result<(Dirent, String)>> + 'a>>
fn sync(&self) -> Result<()>
[src]
fn filestat_get_at(&self, _path: &str, _follow: bool) -> Result<Filestat>
[src]
fn filestat_set_times_at(
&self,
_path: &str,
_atim: Timestamp,
_mtim: Timestamp,
_fst_flags: Fstflags,
_follow: bool
) -> Result<()>
[src]
&self,
_path: &str,
_atim: Timestamp,
_mtim: Timestamp,
_fst_flags: Fstflags,
_follow: bool
) -> Result<()>
Auto Trait Implementations
impl<W> RefUnwindSafe for WritePipe<W>
impl<W> Send for WritePipe<W> where
W: Send + Sync,
W: Send + Sync,
impl<W> Sync for WritePipe<W> where
W: Send + Sync,
W: Send + Sync,
impl<W> Unpin for WritePipe<W>
impl<W> UnwindSafe for WritePipe<W>
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> Pointee for T
[src]
type Pointer = u32
fn debug(
pointer: <T as Pointee>::Pointer,
f: &mut Formatter
) -> Result<(), Error>
[src]
pointer: <T as Pointee>::Pointer,
f: &mut Formatter
) -> Result<(), Error>
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>,