PipeByteChan
PipeBytePort
ReaderBytePort
WriterByteChan
of BytePort for ReaderBytePort<R>
of ByteChan for WriterByteChan<W>
for ReaderBytePort<R>
for WriterByteChan<W>
of BytePort for PipeBytePort
of ByteChan for PipeByteChan
for PipeBytePort
for PipeByteChan
PipeByteChan
pub struct PipeByteChan {
chan: pipes::Chan<~[u8]>,
}
PipeBytePort
pub struct PipeBytePort {
port: pipes::Port<~[u8]>,
mut buf: ~[u8],
}
ReaderBytePort
pub struct ReaderBytePort <R: Reader>{
reader: R,
}
WriterByteChan
pub struct WriterByteChan <W: Writer>{
writer: W,
}
BytePort
for ReaderBytePort<R>
try_recv
fn try_recv(count: uint) -> Option<~[u8]>
ByteChan
for WriterByteChan<W>
send
fn send(val: ~[u8])
ReaderBytePort<R>
new
fn new(r: R) -> ReaderBytePort<R>
WriterByteChan<W>
new
fn new(w: W) -> WriterByteChan<W>
BytePort
for PipeBytePort
try_recv
fn try_recv(count: uint) -> Option<~[u8]>
ByteChan
for PipeByteChan
send
fn send(val: ~[u8])
PipeBytePort
new
fn new(p: Port<~[u8]>) -> PipeBytePort
PipeByteChan
new
fn new(c: Chan<~[u8]>) -> PipeByteChan