pub struct SyncTestTopic(_, pub [u8; 32]);Tuple Fields§
§1: [u8; 32]Implementations§
Trait Implementations§
Source§impl Clone for SyncTestTopic
impl Clone for SyncTestTopic
Source§fn clone(&self) -> SyncTestTopic
fn clone(&self) -> SyncTestTopic
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SyncTestTopic
impl Debug for SyncTestTopic
Source§impl<'de> Deserialize<'de> for SyncTestTopic
impl<'de> Deserialize<'de> for SyncTestTopic
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Hash for SyncTestTopic
impl Hash for SyncTestTopic
Source§impl PartialEq for SyncTestTopic
impl PartialEq for SyncTestTopic
Source§impl Serialize for SyncTestTopic
impl Serialize for SyncTestTopic
Source§impl<'a> SyncProtocol<'a, SyncTestTopic> for DummyProtocol
impl<'a> SyncProtocol<'a, SyncTestTopic> for DummyProtocol
Source§fn name(&self) -> &'static str
fn name(&self) -> &'static str
Custom identifier for this sync protocol implementation. Read more
Source§fn initiate<'async_trait>(
self: Arc<Self>,
topic_query: SyncTestTopic,
tx: Box<&'a mut (dyn AsyncWrite + Send + Unpin)>,
rx: Box<&'a mut (dyn AsyncRead + Send + Unpin)>,
app_tx: Box<&'a mut (dyn Sink<FromSync<SyncTestTopic>, Error = SyncError> + Send + Unpin)>,
) -> Pin<Box<dyn Future<Output = Result<(), SyncError>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
fn initiate<'async_trait>(
self: Arc<Self>,
topic_query: SyncTestTopic,
tx: Box<&'a mut (dyn AsyncWrite + Send + Unpin)>,
rx: Box<&'a mut (dyn AsyncRead + Send + Unpin)>,
app_tx: Box<&'a mut (dyn Sink<FromSync<SyncTestTopic>, Error = SyncError> + Send + Unpin)>,
) -> Pin<Box<dyn Future<Output = Result<(), SyncError>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
Initiate a sync protocol session over the provided bi-directional stream for the given
topic query. Read more
Source§fn accept<'async_trait>(
self: Arc<Self>,
tx: Box<&'a mut (dyn AsyncWrite + Send + Unpin)>,
rx: Box<&'a mut (dyn AsyncRead + Send + Unpin)>,
app_tx: Box<&'a mut (dyn Sink<FromSync<SyncTestTopic>, Error = SyncError> + Send + Unpin)>,
) -> Pin<Box<dyn Future<Output = Result<(), SyncError>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
fn accept<'async_trait>(
self: Arc<Self>,
tx: Box<&'a mut (dyn AsyncWrite + Send + Unpin)>,
rx: Box<&'a mut (dyn AsyncRead + Send + Unpin)>,
app_tx: Box<&'a mut (dyn Sink<FromSync<SyncTestTopic>, Error = SyncError> + Send + Unpin)>,
) -> Pin<Box<dyn Future<Output = Result<(), SyncError>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
Accept a sync protocol session over the provided bi-directional stream. Read more
Source§impl<'a> SyncProtocol<'a, SyncTestTopic> for FailingProtocol
impl<'a> SyncProtocol<'a, SyncTestTopic> for FailingProtocol
Source§fn name(&self) -> &'static str
fn name(&self) -> &'static str
Custom identifier for this sync protocol implementation. Read more
Source§fn initiate<'async_trait>(
self: Arc<Self>,
topic: SyncTestTopic,
tx: Box<&'a mut (dyn AsyncWrite + Send + Unpin)>,
rx: Box<&'a mut (dyn AsyncRead + Send + Unpin)>,
app_tx: Box<&'a mut (dyn Sink<FromSync<SyncTestTopic>, Error = SyncError> + Send + Unpin)>,
) -> Pin<Box<dyn Future<Output = Result<(), SyncError>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
fn initiate<'async_trait>(
self: Arc<Self>,
topic: SyncTestTopic,
tx: Box<&'a mut (dyn AsyncWrite + Send + Unpin)>,
rx: Box<&'a mut (dyn AsyncRead + Send + Unpin)>,
app_tx: Box<&'a mut (dyn Sink<FromSync<SyncTestTopic>, Error = SyncError> + Send + Unpin)>,
) -> Pin<Box<dyn Future<Output = Result<(), SyncError>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
Initiate a sync protocol session over the provided bi-directional stream for the given
topic query. Read more
Source§fn accept<'async_trait>(
self: Arc<Self>,
tx: Box<&'a mut (dyn AsyncWrite + Send + Unpin)>,
rx: Box<&'a mut (dyn AsyncRead + Send + Unpin)>,
app_tx: Box<&'a mut (dyn Sink<FromSync<SyncTestTopic>, Error = SyncError> + Send + Unpin)>,
) -> Pin<Box<dyn Future<Output = Result<(), SyncError>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
fn accept<'async_trait>(
self: Arc<Self>,
tx: Box<&'a mut (dyn AsyncWrite + Send + Unpin)>,
rx: Box<&'a mut (dyn AsyncRead + Send + Unpin)>,
app_tx: Box<&'a mut (dyn Sink<FromSync<SyncTestTopic>, Error = SyncError> + Send + Unpin)>,
) -> Pin<Box<dyn Future<Output = Result<(), SyncError>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
Accept a sync protocol session over the provided bi-directional stream. Read more
Source§impl<'a> SyncProtocol<'a, SyncTestTopic> for PingPongProtocol
impl<'a> SyncProtocol<'a, SyncTestTopic> for PingPongProtocol
Source§fn name(&self) -> &'static str
fn name(&self) -> &'static str
Custom identifier for this sync protocol implementation. Read more
Source§fn initiate<'async_trait>(
self: Arc<Self>,
topic_query: SyncTestTopic,
tx: Box<&'a mut (dyn AsyncWrite + Send + Unpin)>,
rx: Box<&'a mut (dyn AsyncRead + Send + Unpin)>,
app_tx: Box<&'a mut (dyn Sink<FromSync<SyncTestTopic>, Error = SyncError> + Send + Unpin)>,
) -> Pin<Box<dyn Future<Output = Result<(), SyncError>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
fn initiate<'async_trait>(
self: Arc<Self>,
topic_query: SyncTestTopic,
tx: Box<&'a mut (dyn AsyncWrite + Send + Unpin)>,
rx: Box<&'a mut (dyn AsyncRead + Send + Unpin)>,
app_tx: Box<&'a mut (dyn Sink<FromSync<SyncTestTopic>, Error = SyncError> + Send + Unpin)>,
) -> Pin<Box<dyn Future<Output = Result<(), SyncError>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
Initiate a sync protocol session over the provided bi-directional stream for the given
topic query. Read more
Source§fn accept<'async_trait>(
self: Arc<Self>,
tx: Box<&'a mut (dyn AsyncWrite + Send + Unpin)>,
rx: Box<&'a mut (dyn AsyncRead + Send + Unpin)>,
app_tx: Box<&'a mut (dyn Sink<FromSync<SyncTestTopic>, Error = SyncError> + Send + Unpin)>,
) -> Pin<Box<dyn Future<Output = Result<(), SyncError>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
fn accept<'async_trait>(
self: Arc<Self>,
tx: Box<&'a mut (dyn AsyncWrite + Send + Unpin)>,
rx: Box<&'a mut (dyn AsyncRead + Send + Unpin)>,
app_tx: Box<&'a mut (dyn Sink<FromSync<SyncTestTopic>, Error = SyncError> + Send + Unpin)>,
) -> Pin<Box<dyn Future<Output = Result<(), SyncError>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
Accept a sync protocol session over the provided bi-directional stream. Read more
impl Eq for SyncTestTopic
impl StructuralPartialEq for SyncTestTopic
impl TopicQuery for SyncTestTopic
Auto Trait Implementations§
impl Freeze for SyncTestTopic
impl RefUnwindSafe for SyncTestTopic
impl Send for SyncTestTopic
impl Sync for SyncTestTopic
impl Unpin for SyncTestTopic
impl UnwindSafe for SyncTestTopic
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