[][src]Struct libuv::requests::write::WriteReq

pub struct WriteReq { /* fields omitted */ }

Write request type. Careful attention must be paid when reusing objects of this type. When a stream is in non-blocking mode, write requests sent with StreamHandle::write will be queued. Reusing objects at this point is undefined behaviour. It is safe to reuse the WriteReq object only after the callback passed to StreamHandle::write is fired.

Implementations

impl WriteReq[src]

pub fn new<CB: Into<WriteCB<'static>>>(
    bufs: &[impl BufTrait],
    cb: CB
) -> Result<WriteReq>
[src]

Create a new write request

pub fn handle(&self) -> StreamHandle[src]

The stream where this connection request is running

pub fn send_handle(&self) -> StreamHandle[src]

The stream being sent using this write request

pub fn destroy(&mut self)[src]

Deallocate the WriteReq - this is done automatically in the write callback.

Trait Implementations

impl Clone for WriteReq[src]

impl Copy for WriteReq[src]

impl From<WriteReq> for Req[src]

impl ReqTrait for WriteReq[src]

impl ToReq for WriteReq[src]

Auto Trait Implementations

impl RefUnwindSafe for WriteReq

impl !Send for WriteReq

impl !Sync for WriteReq

impl Unpin for WriteReq

impl UnwindSafe for WriteReq

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.