[−][src]Struct libuv::handles::streams::stream::StreamHandle
Stream handles provide an abstraction of a duplex communication channel. StreamHandle is an abstract type, libuv provides 3 stream implementations in the form of TcpHandle, PipeHandle and TtyHandle.
Trait Implementations
impl Clone for StreamHandle
[src]
fn clone(&self) -> StreamHandle
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for StreamHandle
[src]
impl From<PipeHandle> for StreamHandle
[src]
fn from(pipe: PipeHandle) -> StreamHandle
[src]
impl From<StreamHandle> for Handle
[src]
fn from(stream: StreamHandle) -> Handle
[src]
impl From<TcpHandle> for StreamHandle
[src]
fn from(tcp: TcpHandle) -> StreamHandle
[src]
impl From<TtyHandle> for StreamHandle
[src]
fn from(tty: TtyHandle) -> StreamHandle
[src]
impl From<UdpHandle> for StreamHandle
[src]
fn from(udp: UdpHandle) -> StreamHandle
[src]
impl HandleTrait for StreamHandle
[src]
fn is_active(&self) -> bool
[src]
fn is_closing(&self) -> bool
[src]
fn close<CB: Into<CloseCB<'static>>>(&mut self, cb: CB)
[src]
fn ref(&mut self)
[src]
fn unref(&mut self)
[src]
fn has_ref(&self) -> bool
[src]
fn send_buffer_size(&mut self, value: i32) -> Result<i32>
[src]
fn recv_buffer_size(&mut self, value: i32) -> Result<i32>
[src]
fn get_fileno(&self) -> Result<OsFile>
[src]
fn get_loop(&self) -> Loop
[src]
fn get_type(&self) -> HandleType
[src]
impl StreamTrait for StreamHandle
[src]
fn shutdown<CB: Into<ShutdownCB<'static>>>(
&mut self,
cb: CB
) -> Result<ShutdownReq>
[src]
&mut self,
cb: CB
) -> Result<ShutdownReq>
fn listen<CB: Into<ConnectionCB<'static>>>(
&mut self,
backlog: i32,
cb: CB
) -> Result<()>
[src]
&mut self,
backlog: i32,
cb: CB
) -> Result<()>
fn accept(&mut self, client: &mut StreamHandle) -> Result<()>
[src]
fn read_start<ACB: Into<AllocCB<'static>>, RCB: Into<ReadCB<'static>>>(
&mut self,
alloc_cb: ACB,
read_cb: RCB
) -> Result<()>
[src]
&mut self,
alloc_cb: ACB,
read_cb: RCB
) -> Result<()>
fn read_stop(&mut self) -> Result<()>
[src]
fn write<CB: Into<WriteCB<'static>>>(
&mut self,
bufs: &[impl BufTrait],
cb: CB
) -> Result<WriteReq>
[src]
&mut self,
bufs: &[impl BufTrait],
cb: CB
) -> Result<WriteReq>
fn write2<CB: Into<WriteCB<'static>>>(
&mut self,
send_handle: &StreamHandle,
bufs: &[impl BufTrait],
cb: CB
) -> Result<WriteReq>
[src]
&mut self,
send_handle: &StreamHandle,
bufs: &[impl BufTrait],
cb: CB
) -> Result<WriteReq>
fn try_write(&mut self, bufs: &[impl BufTrait]) -> Result<i32>
[src]
fn is_readable(&self) -> bool
[src]
fn is_writable(&self) -> bool
[src]
fn set_blocking(&mut self, blocking: bool) -> Result<()>
[src]
fn get_write_queue_size(&self) -> usize
[src]
impl ToHandle for StreamHandle
[src]
impl ToStream for StreamHandle
[src]
fn to_stream(&self) -> StreamHandle
[src]
impl TryFrom<StreamHandle> for PipeHandle
[src]
type Error = ConversionError
The type returned in the event of a conversion error.
fn try_from(stream: StreamHandle) -> Result<Self, Self::Error>
[src]
impl TryFrom<StreamHandle> for TcpHandle
[src]
type Error = ConversionError
The type returned in the event of a conversion error.
fn try_from(stream: StreamHandle) -> Result<Self, Self::Error>
[src]
impl TryFrom<StreamHandle> for TtyHandle
[src]
type Error = ConversionError
The type returned in the event of a conversion error.
fn try_from(stream: StreamHandle) -> Result<Self, Self::Error>
[src]
impl TryFrom<StreamHandle> for UdpHandle
[src]
type Error = ConversionError
The type returned in the event of a conversion error.
fn try_from(stream: StreamHandle) -> Result<Self, Self::Error>
[src]
Auto Trait Implementations
impl RefUnwindSafe for StreamHandle
impl !Send for StreamHandle
impl !Sync for StreamHandle
impl Unpin for StreamHandle
impl UnwindSafe for StreamHandle
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,