std: Make the DuplexStream constructor public
This commit is contained in:
parent
90f959aad4
commit
d0333a8e41
1 changed files with 1 additions and 1 deletions
|
@ -46,7 +46,7 @@ impl<T: Send, U: Send> DuplexStream<T, U> : Selectable {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Creates a bidirectional stream.
|
/// Creates a bidirectional stream.
|
||||||
fn DuplexStream<T: Send, U: Send>()
|
pub fn DuplexStream<T: Send, U: Send>()
|
||||||
-> (DuplexStream<T, U>, DuplexStream<U, T>)
|
-> (DuplexStream<T, U>, DuplexStream<U, T>)
|
||||||
{
|
{
|
||||||
let (c2, p1) = pipes::stream();
|
let (c2, p1) = pipes::stream();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue