[][src]Function stellar_sql::connection::message::new

pub fn new<A>(a: A) -> Message<A> where
    A: AsyncRead + BufRead

Creates a new stream from the I/O object given representing the message of input that are found on A.

This method takes an asynchronous I/O object, a, and returns a Stream of message that the object contains. The returned stream will reach its end once a reaches EOF.