Trait rust_asio::ReadWrite
[−]
[src]
pub trait ReadWrite: Sized + Cancel { fn read_some<T: IoObject>(&self, io: &T, buf: &mut [u8]) -> Result<usize>; fn async_read_some<A, F, T>(a: A, callback: F, obj: &Strand<T>) where A: Fn(&mut T) -> (&Self, &mut [u8]) + Send, F: FnOnce(Strand<T>, Result<usize>) + Send; fn write_some<T: IoObject>(&self, io: &T, buf: &[u8]) -> Result<usize>; fn async_write_some<A, F, T>(a: A, callback: F, obj: &Strand<T>) where A: Fn(&T) -> (&Self, &[u8]) + Send, F: FnOnce(Strand<T>, Result<usize>) + Send; fn async_read_until<A, C, F, T>(a: A, cond: C, callback: F, obj: &Strand<T>) where A: Fn(&mut T) -> (&Self, &mut StreamBuf) + Send, C: MatchCondition + Send, F: FnOnce(Strand<T>, Result<usize>) + Send; fn async_write_until<A, C, F, T>(a: A, cond: C, callback: F, obj: &Strand<T>) where A: Fn(&mut T) -> (&Self, &mut StreamBuf) + Send, C: MatchCondition + Send, F: FnOnce(Strand<T>, Result<usize>) + Send { ... } }
Required Methods
fn read_some<T: IoObject>(&self, io: &T, buf: &mut [u8]) -> Result<usize>
fn async_read_some<A, F, T>(a: A, callback: F, obj: &Strand<T>) where A: Fn(&mut T) -> (&Self, &mut [u8]) + Send, F: FnOnce(Strand<T>, Result<usize>) + Send
fn write_some<T: IoObject>(&self, io: &T, buf: &[u8]) -> Result<usize>
fn async_write_some<A, F, T>(a: A, callback: F, obj: &Strand<T>) where A: Fn(&T) -> (&Self, &[u8]) + Send, F: FnOnce(Strand<T>, Result<usize>) + Send
fn async_read_until<A, C, F, T>(a: A, cond: C, callback: F, obj: &Strand<T>) where A: Fn(&mut T) -> (&Self, &mut StreamBuf) + Send, C: MatchCondition + Send, F: FnOnce(Strand<T>, Result<usize>) + Send
Provided Methods
fn async_write_until<A, C, F, T>(a: A, cond: C, callback: F, obj: &Strand<T>) where A: Fn(&mut T) -> (&Self, &mut StreamBuf) + Send, C: MatchCondition + Send, F: FnOnce(Strand<T>, Result<usize>) + Send
Implementors
impl ReadWrite for LocalStreamSocket
impl ReadWrite for TcpSocket