Home
last modified time | relevance | path

Searched refs:ReuniteError (Results 1 – 12 of 12) sorted by relevance

/external/rust/crates/tokio/src/net/unix/
Dsplit_owned.rs69 ) -> Result<UnixStream, ReuniteError> { in reunite() argument
76 Err(ReuniteError(read, write)) in reunite()
83 pub struct ReuniteError(pub OwnedReadHalf, pub OwnedWriteHalf); struct
85 impl fmt::Display for ReuniteError { implementation
94 impl Error for ReuniteError {} implementation
102 pub fn reunite(self, other: OwnedWriteHalf) -> Result<UnixStream, ReuniteError> { in reunite() argument
123 pub fn reunite(self, other: OwnedReadHalf) -> Result<UnixStream, ReuniteError> { in reunite() argument
Dmod.rs11 pub use split_owned::{OwnedReadHalf, OwnedWriteHalf, ReuniteError};
/external/rust/crates/tokio/src/net/tcp/
Dsplit_owned.rs70 ) -> Result<TcpStream, ReuniteError> { in reunite() argument
77 Err(ReuniteError(read, write)) in reunite()
84 pub struct ReuniteError(pub OwnedReadHalf, pub OwnedWriteHalf); struct
86 impl fmt::Display for ReuniteError { implementation
95 impl Error for ReuniteError {} implementation
103 pub fn reunite(self, other: OwnedWriteHalf) -> Result<TcpStream, ReuniteError> { in reunite() argument
210 pub fn reunite(self, other: OwnedReadHalf) -> Result<TcpStream, ReuniteError> { in reunite() argument
Dmod.rs11 pub use split_owned::{OwnedReadHalf, OwnedWriteHalf, ReuniteError};
/external/rust/crates/futures-util/src/io/
Dsplit.rs41 pub fn reunite(self, other: WriteHalf<T>) -> Result<T, ReuniteError<T>> { in reunite()
43 ReuniteError(ReadHalf { handle: err.0 }, WriteHalf { handle: err.1 }) in reunite()
52 pub fn reunite(self, other: ReadHalf<T>) -> Result<T, ReuniteError<T>> { in reunite()
95 pub struct ReuniteError<T>(pub ReadHalf<T>, pub WriteHalf<T>); struct
97 impl<T> fmt::Debug for ReuniteError<T> { implementation
105 impl<T> fmt::Display for ReuniteError<T> { implementation
112 impl<T: core::any::Any> std::error::Error for ReuniteError<T> {} implementation
Dmod.rs129 pub use self::split::{ReadHalf, WriteHalf, ReuniteError};
/external/rust/crates/futures-util/src/stream/stream/
Dsplit.rs22 pub fn reunite<Item>(self, other: SplitSink<S, Item>) -> Result<S, ReuniteError<S, Item>> in reunite()
60 pub fn reunite(self, other: SplitStream<S>) -> Result<S, ReuniteError<S, Item>> { in reunite()
62 ReuniteError(SplitSink(err.0), SplitStream(err.1)) in reunite()
126 pub struct ReuniteError<T, Item>(pub SplitSink<T, Item>, pub SplitStream<T>); struct
128 impl<T, Item> fmt::Debug for ReuniteError<T, Item> { implementation
136 impl<T, Item> fmt::Display for ReuniteError<T, Item> { implementation
143 impl<T: core::any::Any, Item> std::error::Error for ReuniteError<T, Item> {} implementation
Dmod.rs199 pub use self::split::{SplitStream, SplitSink, ReuniteError};
/external/rust/crates/futures-util/src/lock/
Dbilock.rs156 pub fn reunite(self, other: Self) -> Result<T, ReuniteError<T>> in reunite()
167 Err(ReuniteError(self, other)) in reunite()
204 pub struct ReuniteError<T>(pub BiLock<T>, pub BiLock<T>); struct
206 impl<T> fmt::Debug for ReuniteError<T> { implementation
214 impl<T> fmt::Display for ReuniteError<T> { implementation
221 impl<T: core::any::Any> std::error::Error for ReuniteError<T> {} implementation
Dmod.rs18 pub use self::bilock::{BiLock, BiLockAcquire, BiLockGuard, ReuniteError};
/external/rust/crates/futures/tests/
Dauto_traits.rs800 assert_impl!(ReuniteError<()>: Send);
801 assert_not_impl!(ReuniteError<*const ()>: Send);
802 assert_impl!(ReuniteError<()>: Sync);
803 assert_not_impl!(ReuniteError<*const ()>: Sync);
804 assert_impl!(ReuniteError<PhantomPinned>: Unpin);
938 assert_impl!(ReuniteError<()>: Send);
940 assert_not_impl!(ReuniteError<*const ()>: Send);
942 assert_impl!(ReuniteError<()>: Sync);
944 assert_not_impl!(ReuniteError<*const ()>: Sync);
946 assert_impl!(ReuniteError<PhantomPinned>: Unpin);
[all …]
/external/rust/crates/futures-util/src/stream/
Dmod.rs47 pub use self::stream::{ReuniteError, SplitSink, SplitStream};