[−][src]Struct libuv::requests::write::WriteReq
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]
bufs: &[impl BufTrait],
cb: CB
) -> Result<WriteReq>
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]
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>,