[−][src]Struct async_dup::Arc
A reference-counted pointer that implements async I/O traits.
This is just a wrapper around std::sync::Arc
that adds the following impls:
impl<T> AsyncRead for Arc<T> where &T: AsyncRead {}
impl<T> AsyncWrite for Arc<T> where &T: AsyncWrite {}
impl<T> AsyncSeek for Arc<T> where &T: AsyncSeek {}
Implementations
impl<T> Arc<T>
[src]
Trait Implementations
impl<T> AsyncRead for Arc<T> where
&'a T: AsyncRead,
[src]
&'a T: AsyncRead,
fn poll_read(
self: Pin<&mut Self>,
cx: &mut Context<'_>,
buf: &mut [u8]
) -> Poll<Result<usize>>
[src]
self: Pin<&mut Self>,
cx: &mut Context<'_>,
buf: &mut [u8]
) -> Poll<Result<usize>>
fn poll_read_vectored(
self: Pin<&mut Self>,
cx: &mut Context<'_>,
bufs: &mut [IoSliceMut<'_>]
) -> Poll<Result<usize>>
[src]
self: Pin<&mut Self>,
cx: &mut Context<'_>,
bufs: &mut [IoSliceMut<'_>]
) -> Poll<Result<usize>>
impl<T> AsyncSeek for Arc<T> where
&'a T: AsyncSeek,
[src]
&'a T: AsyncSeek,
impl<T> AsyncWrite for Arc<T> where
&'a T: AsyncWrite,
[src]
&'a T: AsyncWrite,
fn poll_write(
self: Pin<&mut Self>,
cx: &mut Context<'_>,
buf: &[u8]
) -> Poll<Result<usize>>
[src]
self: Pin<&mut Self>,
cx: &mut Context<'_>,
buf: &[u8]
) -> Poll<Result<usize>>
fn poll_write_vectored(
self: Pin<&mut Self>,
cx: &mut Context<'_>,
bufs: &[IoSlice<'_>]
) -> Poll<Result<usize>>
[src]
self: Pin<&mut Self>,
cx: &mut Context<'_>,
bufs: &[IoSlice<'_>]
) -> Poll<Result<usize>>
fn poll_flush(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Result<()>>
[src]
fn poll_close(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Result<()>>
[src]
impl<T> Clone for Arc<T>
[src]
impl<T: Debug> Debug for Arc<T>
[src]
impl<T: Default> Default for Arc<T>
[src]
impl<T> Deref for Arc<T>
[src]
impl<T: Display> Display for Arc<T>
[src]
impl<T> From<T> for Arc<T>
[src]
impl<T: Hash> Hash for Arc<T>
[src]
fn hash<H: Hasher>(&self, state: &mut H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl<T> Pointer for Arc<T>
[src]
impl<T> Unpin for Arc<T>
[src]
Auto Trait Implementations
impl<T> RefUnwindSafe for Arc<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
impl<T> Send for Arc<T> where
T: Send + Sync,
T: Send + Sync,
impl<T> Sync for Arc<T> where
T: Send + Sync,
T: Send + Sync,
impl<T> UnwindSafe for Arc<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
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<!> for 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> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
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>,