pub enum ThreeWays<ONE, TWO, THREE> {
One(ONE),
Two(TWO),
Three(THREE),
}Expand description
ThreeWays is used to implement traits that based on three ways.
Users can wrap three different trait types together.
Variants§
One(ONE)
The first type for the ThreeWays.
Two(TWO)
The second type for the ThreeWays.
Three(THREE)
The third type for the ThreeWays.
Trait Implementations§
Source§impl<ONE: ReadStream, TWO: ReadStream, THREE: ReadStream> ReadStream for ThreeWays<ONE, TWO, THREE>
impl<ONE: ReadStream, TWO: ReadStream, THREE: ReadStream> ReadStream for ThreeWays<ONE, TWO, THREE>
Source§impl<ONE: Write, TWO: Write, THREE: Write> Write for ThreeWays<ONE, TWO, THREE>
impl<ONE: Write, TWO: Write, THREE: Write> Write for ThreeWays<ONE, TWO, THREE>
Auto Trait Implementations§
impl<ONE, TWO, THREE> Freeze for ThreeWays<ONE, TWO, THREE>
impl<ONE, TWO, THREE> RefUnwindSafe for ThreeWays<ONE, TWO, THREE>
impl<ONE, TWO, THREE> Send for ThreeWays<ONE, TWO, THREE>
impl<ONE, TWO, THREE> Sync for ThreeWays<ONE, TWO, THREE>
impl<ONE, TWO, THREE> Unpin for ThreeWays<ONE, TWO, THREE>
impl<ONE, TWO, THREE> UnsafeUnpin for ThreeWays<ONE, TWO, THREE>
impl<ONE, TWO, THREE> UnwindSafe for ThreeWays<ONE, TWO, THREE>
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
impl<T> MaybeSend for Twhere
T: Send,
impl<T> MaybeSend for Twhere
T: Send,
Source§impl<T> ReadStreamDyn for Twhere
T: ReadStream + ?Sized,
impl<T> ReadStreamDyn for Twhere
T: ReadStream + ?Sized,
Source§impl<T> WithSubscriber for T
impl<T> WithSubscriber for T
Source§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘ
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘ
Source§fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ
fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ
Source§impl<T> WriteDyn for T
impl<T> WriteDyn for T
Source§fn write_dyn(
&mut self,
bs: Buffer,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + '_>>
fn write_dyn( &mut self, bs: Buffer, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + '_>>
The dyn version of
Write::write.Source§fn copy_from_dyn<'a>(
&'a mut self,
path: &'a str,
args: OpRead,
range: BytesRange,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
fn copy_from_dyn<'a>( &'a mut self, path: &'a str, args: OpRead, range: BytesRange, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
The dyn version of
Write::copy_from.