Add Sync to ServerConnectError

This commit is contained in:
famfo 2024-01-26 12:28:59 +01:00 committed by Link Mauve
parent 0949acb750
commit 28ab91f46a

View file

@ -11,7 +11,7 @@ pub trait AsyncReadAndWrite: AsyncRead + AsyncWrite + Unpin + Send {}
impl<T: AsyncRead + AsyncWrite + Unpin + Send> AsyncReadAndWrite for T {} impl<T: AsyncRead + AsyncWrite + Unpin + Send> AsyncReadAndWrite for T {}
/// Trait that must be extended by the implementation of ServerConnector /// Trait that must be extended by the implementation of ServerConnector
pub trait ServerConnectorError: std::error::Error + Send {} pub trait ServerConnectorError: std::error::Error + Sync + Send {}
/// Trait called to connect to an XMPP server, perhaps called multiple times /// Trait called to connect to an XMPP server, perhaps called multiple times
pub trait ServerConnector: Clone + core::fmt::Debug + Send + Unpin + 'static { pub trait ServerConnector: Clone + core::fmt::Debug + Send + Unpin + 'static {