pub struct PipeWriter { /* private fields */ }Expand description
管道写端
Implementations§
Source§impl PipeWriter
impl PipeWriter
Sourcepub fn write(&self, buf: UserBuffer) -> isize
pub fn write(&self, buf: UserBuffer) -> isize
将用户缓冲区数据写入管道。
返回值:
> 0: 实际写入的字节数-2: 当前无空间可写(需等待)
Auto Trait Implementations§
impl Freeze for PipeWriter
impl !RefUnwindSafe for PipeWriter
impl Send for PipeWriter
impl Sync for PipeWriter
impl Unpin for PipeWriter
impl UnsafeUnpin for PipeWriter
impl !UnwindSafe for PipeWriter
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