Enum xwt_tests::tests::accept_bi_stream::Error
source · pub enum Error<Endpoint>where
Endpoint: EndpointConnect + Debug,
Endpoint::Connecting: Debug,
EndpointConnectConnectionFor<Endpoint>: AcceptBiStream + Debug,{
Connect(Connect<Endpoint>),
AcceptBiStream(<EndpointConnectConnectionFor<Endpoint> as AcceptBiStream>::Error),
Send(WriteErrorFor<SendStreamFor<EndpointConnectConnectionFor<Endpoint>>>),
Recv(ReadErrorFor<RecvStreamFor<EndpointConnectConnectionFor<Endpoint>>>),
NoResponse,
BadData(Vec<u8>),
}Variants§
Connect(Connect<Endpoint>)
AcceptBiStream(<EndpointConnectConnectionFor<Endpoint> as AcceptBiStream>::Error)
Send(WriteErrorFor<SendStreamFor<EndpointConnectConnectionFor<Endpoint>>>)
Recv(ReadErrorFor<RecvStreamFor<EndpointConnectConnectionFor<Endpoint>>>)
NoResponse
BadData(Vec<u8>)
Trait Implementations§
source§impl<Endpoint> Debug for Error<Endpoint>where
Endpoint: EndpointConnect + Debug + Debug,
Endpoint::Connecting: Debug,
EndpointConnectConnectionFor<Endpoint>: AcceptBiStream + Debug,
impl<Endpoint> Debug for Error<Endpoint>where
Endpoint: EndpointConnect + Debug + Debug,
Endpoint::Connecting: Debug,
EndpointConnectConnectionFor<Endpoint>: AcceptBiStream + Debug,
source§impl<Endpoint> Display for Error<Endpoint>where
Endpoint: EndpointConnect + Debug,
Endpoint::Connecting: Debug,
EndpointConnectConnectionFor<Endpoint>: AcceptBiStream + Debug,
Connect<Endpoint>: Display,
WriteErrorFor<SendStreamFor<EndpointConnectConnectionFor<Endpoint>>>: Display,
ReadErrorFor<RecvStreamFor<EndpointConnectConnectionFor<Endpoint>>>: Display,
impl<Endpoint> Display for Error<Endpoint>where
Endpoint: EndpointConnect + Debug,
Endpoint::Connecting: Debug,
EndpointConnectConnectionFor<Endpoint>: AcceptBiStream + Debug,
Connect<Endpoint>: Display,
WriteErrorFor<SendStreamFor<EndpointConnectConnectionFor<Endpoint>>>: Display,
ReadErrorFor<RecvStreamFor<EndpointConnectConnectionFor<Endpoint>>>: Display,
source§impl<Endpoint> Error for Error<Endpoint>where
Endpoint: EndpointConnect + Debug,
Endpoint::Connecting: Debug,
EndpointConnectConnectionFor<Endpoint>: AcceptBiStream + Debug,
Connect<Endpoint>: Error + 'static,
WriteErrorFor<SendStreamFor<EndpointConnectConnectionFor<Endpoint>>>: Error + 'static,
ReadErrorFor<RecvStreamFor<EndpointConnectConnectionFor<Endpoint>>>: Error + 'static,
Self: Debug + Display,
impl<Endpoint> Error for Error<Endpoint>where
Endpoint: EndpointConnect + Debug,
Endpoint::Connecting: Debug,
EndpointConnectConnectionFor<Endpoint>: AcceptBiStream + Debug,
Connect<Endpoint>: Error + 'static,
WriteErrorFor<SendStreamFor<EndpointConnectConnectionFor<Endpoint>>>: Error + 'static,
ReadErrorFor<RecvStreamFor<EndpointConnectConnectionFor<Endpoint>>>: Error + 'static,
Self: Debug + Display,
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Auto Trait Implementations§
impl<Endpoint> RefUnwindSafe for Error<Endpoint>where
<Endpoint as EndpointConnect>::Error: RefUnwindSafe,
<<Endpoint as EndpointConnect>::Connecting as Connecting>::Error: RefUnwindSafe,
<<<Endpoint as EndpointConnect>::Connecting as Connecting>::Connection as AcceptBiStream>::Error: RefUnwindSafe,
<<<<Endpoint as EndpointConnect>::Connecting as Connecting>::Connection as Streams>::RecvStream as Read>::Error: RefUnwindSafe,
<<<<Endpoint as EndpointConnect>::Connecting as Connecting>::Connection as Streams>::SendStream as Write>::Error: RefUnwindSafe,
impl<Endpoint> Send for Error<Endpoint>
impl<Endpoint> Sync for Error<Endpoint>
impl<Endpoint> Unpin for Error<Endpoint>where
<Endpoint as EndpointConnect>::Error: Unpin,
<<Endpoint as EndpointConnect>::Connecting as Connecting>::Error: Unpin,
<<<Endpoint as EndpointConnect>::Connecting as Connecting>::Connection as AcceptBiStream>::Error: Unpin,
<<<<Endpoint as EndpointConnect>::Connecting as Connecting>::Connection as Streams>::RecvStream as Read>::Error: Unpin,
<<<<Endpoint as EndpointConnect>::Connecting as Connecting>::Connection as Streams>::SendStream as Write>::Error: Unpin,
impl<Endpoint> UnwindSafe for Error<Endpoint>where
<Endpoint as EndpointConnect>::Error: UnwindSafe,
<<Endpoint as EndpointConnect>::Connecting as Connecting>::Error: UnwindSafe,
<<<Endpoint as EndpointConnect>::Connecting as Connecting>::Connection as AcceptBiStream>::Error: UnwindSafe,
<<<<Endpoint as EndpointConnect>::Connecting as Connecting>::Connection as Streams>::RecvStream as Read>::Error: UnwindSafe,
<<<<Endpoint as EndpointConnect>::Connecting as Connecting>::Connection as Streams>::SendStream as Write>::Error: UnwindSafe,
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