Struct git_features::io::pipe::Writer [−][src]
pub struct Writer {
pub channel: SyncSender<Result<BytesMut>>,
// some fields omitted
}The write-end of the pipe, receiving items to become available in the Reader.
It’s commonly used with the std::io::Write trait it implements.
Fields
channel: SyncSender<Result<BytesMut>>The channel through which bytes are transferred. Useful for sending std::io::Errors instead.
Trait Implementations
impl Write for Writer[src]
impl Write for Writer[src]fn write(&mut self, buf: &[u8]) -> Result<usize>[src]
fn flush(&mut self) -> Result<()>[src]
pub fn write_vectored(&mut self, bufs: &[IoSlice<'_>]) -> Result<usize, Error>1.36.0[src]
pub fn is_write_vectored(&self) -> bool[src]
pub fn write_all(&mut self, buf: &[u8]) -> Result<(), Error>1.0.0[src]
pub fn write_all_vectored(
&mut self,
bufs: &mut [IoSlice<'_>]
) -> Result<(), Error>[src]
&mut self,
bufs: &mut [IoSlice<'_>]
) -> Result<(), Error>
pub fn write_fmt(&mut self, fmt: Arguments<'_>) -> Result<(), Error>1.0.0[src]
pub fn by_ref(&mut self) -> &mut Self1.0.0[src]
Auto Trait Implementations
impl RefUnwindSafe for Writer
impl RefUnwindSafe for Writerimpl UnwindSafe for Writer
impl UnwindSafe for Writer