pub struct Handle {
pub reactor: IoReactor,
pub fd: Arc<RawFd>,
pub closed: Arc<AtomicBool>,
}Expand description
Socket handle wrapper.
Fields§
§reactor: IoReactorSocket handle bind reactor
fd: Arc<RawFd>Socket handle bind os fd.
closed: Arc<AtomicBool>Close status
Trait Implementations§
Source§impl ReactorHandle for Handle
impl ReactorHandle for Handle
Source§type ReadBuffer<'cx> = &'cx mut [u8]
type ReadBuffer<'cx> = &'cx mut [u8]
Buffer type for file read operators
Source§type WriteBuffer<'cx> = &'cx [u8]
type WriteBuffer<'cx> = &'cx [u8]
Buffer type for file write operators.
Source§fn poll_close(self: Pin<&mut Self>, _cx: &mut Context<'_>) -> Poll<Result<()>>
fn poll_close(self: Pin<&mut Self>, _cx: &mut Context<'_>) -> Poll<Result<()>>
Close reactor handle.
Auto Trait Implementations§
impl Freeze for Handle
impl RefUnwindSafe for Handle
impl Send for Handle
impl Sync for Handle
impl Unpin for Handle
impl UnwindSafe for Handle
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