Struct libuv::requests::shutdown::ShutdownReq
source · pub struct ShutdownReq { /* private fields */ }
Expand description
Shutdown request type.
Implementations§
source§impl ShutdownReq
impl ShutdownReq
sourcepub fn new<CB: Into<ShutdownCB<'static>>>(cb: CB) -> Result<ShutdownReq>
pub fn new<CB: Into<ShutdownCB<'static>>>(cb: CB) -> Result<ShutdownReq>
Create a new shutdown request
sourcepub fn handle(&self) -> StreamHandle
pub fn handle(&self) -> StreamHandle
The stream where this connection request is running
Trait Implementations§
source§impl Clone for ShutdownReq
impl Clone for ShutdownReq
source§fn clone(&self) -> ShutdownReq
fn clone(&self) -> ShutdownReq
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl From<ShutdownReq> for Req
impl From<ShutdownReq> for Req
source§fn from(shutdown: ShutdownReq) -> Req
fn from(shutdown: ShutdownReq) -> Req
Converts to this type from the input type.
source§impl ReqTrait for ShutdownReq
impl ReqTrait for ShutdownReq
impl Copy for ShutdownReq
Auto Trait Implementations§
impl RefUnwindSafe for ShutdownReq
impl !Send for ShutdownReq
impl !Sync for ShutdownReq
impl Unpin for ShutdownReq
impl UnwindSafe for ShutdownReq
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more