pub struct DefaultClassifiedCmdNode<C: WorkerClassification, M: CmdTunnelMeta, R: ClassifiedCmdTunnelRead<C, M>, W: ClassifiedCmdTunnelWrite<C, M>, F: ClassifiedCmdNodeTunnelFactory<C, M, R, W>, LEN: RawEncode + for<'a> RawDecode<'a> + Copy + Send + Sync + 'static + FromPrimitive + ToPrimitive + RawFixedBytes, CMD: RawEncode + for<'a> RawDecode<'a> + Copy + Send + Sync + 'static + RawFixedBytes + Eq + Hash + Debug, LISTENER: CmdTunnelListener<M, R, W>> { /* private fields */ }Implementations§
Source§impl<C: WorkerClassification, M: CmdTunnelMeta, R: ClassifiedCmdTunnelRead<C, M>, W: ClassifiedCmdTunnelWrite<C, M>, F: ClassifiedCmdNodeTunnelFactory<C, M, R, W>, LEN: RawEncode + for<'a> RawDecode<'a> + Copy + Send + Sync + 'static + FromPrimitive + ToPrimitive + RawFixedBytes, CMD: RawEncode + for<'a> RawDecode<'a> + Copy + Send + Sync + 'static + RawFixedBytes + Eq + Hash + Debug, LISTENER: CmdTunnelListener<M, R, W>> DefaultClassifiedCmdNode<C, M, R, W, F, LEN, CMD, LISTENER>
impl<C: WorkerClassification, M: CmdTunnelMeta, R: ClassifiedCmdTunnelRead<C, M>, W: ClassifiedCmdTunnelWrite<C, M>, F: ClassifiedCmdNodeTunnelFactory<C, M, R, W>, LEN: RawEncode + for<'a> RawDecode<'a> + Copy + Send + Sync + 'static + FromPrimitive + ToPrimitive + RawFixedBytes, CMD: RawEncode + for<'a> RawDecode<'a> + Copy + Send + Sync + 'static + RawFixedBytes + Eq + Hash + Debug, LISTENER: CmdTunnelListener<M, R, W>> DefaultClassifiedCmdNode<C, M, R, W, F, LEN, CMD, LISTENER>
Trait Implementations§
Source§impl<C: WorkerClassification, M: CmdTunnelMeta, R: ClassifiedCmdTunnelRead<C, M>, W: ClassifiedCmdTunnelWrite<C, M>, F: ClassifiedCmdNodeTunnelFactory<C, M, R, W>, LEN: RawEncode + for<'a> RawDecode<'a> + Copy + Send + Sync + 'static + FromPrimitive + ToPrimitive + RawFixedBytes, CMD: RawEncode + for<'a> RawDecode<'a> + Copy + Send + Sync + 'static + RawFixedBytes + Eq + Hash + Debug, LISTENER: CmdTunnelListener<M, R, W>> ClassifiedCmdNode<LEN, CMD, C, M, ClassifiedCmdSend<C, M, R, W, LEN, CMD>, ClassifiedSendGuard<CmdNodeTunnelClassification<C>, M, ClassifiedCmdSend<C, M, R, W, LEN, CMD>, ClassifiedCmdNodeWriteFactory<C, M, R, W, F, LEN, CMD, LISTENER>>> for DefaultClassifiedCmdNode<C, M, R, W, F, LEN, CMD, LISTENER>
impl<C: WorkerClassification, M: CmdTunnelMeta, R: ClassifiedCmdTunnelRead<C, M>, W: ClassifiedCmdTunnelWrite<C, M>, F: ClassifiedCmdNodeTunnelFactory<C, M, R, W>, LEN: RawEncode + for<'a> RawDecode<'a> + Copy + Send + Sync + 'static + FromPrimitive + ToPrimitive + RawFixedBytes, CMD: RawEncode + for<'a> RawDecode<'a> + Copy + Send + Sync + 'static + RawFixedBytes + Eq + Hash + Debug, LISTENER: CmdTunnelListener<M, R, W>> ClassifiedCmdNode<LEN, CMD, C, M, ClassifiedCmdSend<C, M, R, W, LEN, CMD>, ClassifiedSendGuard<CmdNodeTunnelClassification<C>, M, ClassifiedCmdSend<C, M, R, W, LEN, CMD>, ClassifiedCmdNodeWriteFactory<C, M, R, W, F, LEN, CMD, LISTENER>>> for DefaultClassifiedCmdNode<C, M, R, W, F, LEN, CMD, LISTENER>
fn send_by_classified_tunnel<'life0, 'life1, 'async_trait>(
&'life0 self,
classification: C,
cmd: CMD,
version: u8,
body: &'life1 [u8],
) -> Pin<Box<dyn Future<Output = CmdResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn send_by_classified_tunnel_with_resp<'life0, 'life1, 'async_trait>(
&'life0 self,
classification: C,
cmd: CMD,
version: u8,
body: &'life1 [u8],
timeout: Duration,
) -> Pin<Box<dyn Future<Output = CmdResult<CmdBody>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn send2_by_classified_tunnel<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
classification: C,
cmd: CMD,
version: u8,
body: &'life1 [&'life2 [u8]],
) -> Pin<Box<dyn Future<Output = CmdResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn send2_by_classified_tunnel_with_resp<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
classification: C,
cmd: CMD,
version: u8,
body: &'life1 [&'life2 [u8]],
timeout: Duration,
) -> Pin<Box<dyn Future<Output = CmdResult<CmdBody>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn send_cmd_by_classified_tunnel<'life0, 'async_trait>(
&'life0 self,
classification: C,
cmd: CMD,
version: u8,
body: CmdBody,
) -> Pin<Box<dyn Future<Output = CmdResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn send_cmd_by_classified_tunnel_with_resp<'life0, 'async_trait>(
&'life0 self,
classification: C,
cmd: CMD,
version: u8,
body: CmdBody,
timeout: Duration,
) -> Pin<Box<dyn Future<Output = CmdResult<CmdBody>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn send_by_peer_classified_tunnel<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
peer_id: &'life1 PeerId,
classification: C,
cmd: CMD,
version: u8,
body: &'life2 [u8],
) -> Pin<Box<dyn Future<Output = CmdResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn send_by_peer_classified_tunnel_with_resp<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
peer_id: &'life1 PeerId,
classification: C,
cmd: CMD,
version: u8,
body: &'life2 [u8],
timeout: Duration,
) -> Pin<Box<dyn Future<Output = CmdResult<CmdBody>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn send2_by_peer_classified_tunnel<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
peer_id: &'life1 PeerId,
classification: C,
cmd: CMD,
version: u8,
body: &'life2 [&'life3 [u8]],
) -> Pin<Box<dyn Future<Output = CmdResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
fn send2_by_peer_classified_tunnel_with_resp<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
peer_id: &'life1 PeerId,
classification: C,
cmd: CMD,
version: u8,
body: &'life2 [&'life3 [u8]],
timeout: Duration,
) -> Pin<Box<dyn Future<Output = CmdResult<CmdBody>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
fn send_cmd_by_peer_classified_tunnel<'life0, 'life1, 'async_trait>(
&'life0 self,
peer_id: &'life1 PeerId,
classification: C,
cmd: CMD,
version: u8,
body: CmdBody,
) -> Pin<Box<dyn Future<Output = CmdResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn send_cmd_by_peer_classified_tunnel_with_resp<'life0, 'life1, 'async_trait>(
&'life0 self,
peer_id: &'life1 PeerId,
classification: C,
cmd: CMD,
version: u8,
body: CmdBody,
timeout: Duration,
) -> Pin<Box<dyn Future<Output = CmdResult<CmdBody>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn find_tunnel_id_by_classified<'life0, 'async_trait>(
&'life0 self,
classification: C,
) -> Pin<Box<dyn Future<Output = CmdResult<TunnelId>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn find_tunnel_id_by_peer_classified<'life0, 'life1, 'async_trait>(
&'life0 self,
peer_id: &'life1 PeerId,
classification: C,
) -> Pin<Box<dyn Future<Output = CmdResult<TunnelId>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_send_by_classified<'life0, 'async_trait>(
&'life0 self,
classification: C,
) -> Pin<Box<dyn Future<Output = CmdResult<ClassifiedCmdNodeSendGuard<C, M, R, W, F, LEN, CMD, LISTENER>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_send_by_peer_classified<'life0, 'life1, 'async_trait>(
&'life0 self,
peer_id: &'life1 PeerId,
classification: C,
) -> Pin<Box<dyn Future<Output = CmdResult<ClassifiedCmdNodeSendGuard<C, M, R, W, F, LEN, CMD, LISTENER>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Source§impl<C: WorkerClassification, M: CmdTunnelMeta, R: ClassifiedCmdTunnelRead<C, M>, W: ClassifiedCmdTunnelWrite<C, M>, F: ClassifiedCmdNodeTunnelFactory<C, M, R, W>, LEN: RawEncode + for<'a> RawDecode<'a> + Copy + Send + Sync + 'static + FromPrimitive + ToPrimitive + RawFixedBytes, CMD: RawEncode + for<'a> RawDecode<'a> + Copy + Send + Sync + 'static + RawFixedBytes + Eq + Hash + Debug, LISTENER: CmdTunnelListener<M, R, W>> CmdNode<LEN, CMD, M, ClassifiedCmdSend<C, M, R, W, LEN, CMD>, ClassifiedSendGuard<CmdNodeTunnelClassification<C>, M, ClassifiedCmdSend<C, M, R, W, LEN, CMD>, ClassifiedCmdNodeWriteFactory<C, M, R, W, F, LEN, CMD, LISTENER>>> for DefaultClassifiedCmdNode<C, M, R, W, F, LEN, CMD, LISTENER>
impl<C: WorkerClassification, M: CmdTunnelMeta, R: ClassifiedCmdTunnelRead<C, M>, W: ClassifiedCmdTunnelWrite<C, M>, F: ClassifiedCmdNodeTunnelFactory<C, M, R, W>, LEN: RawEncode + for<'a> RawDecode<'a> + Copy + Send + Sync + 'static + FromPrimitive + ToPrimitive + RawFixedBytes, CMD: RawEncode + for<'a> RawDecode<'a> + Copy + Send + Sync + 'static + RawFixedBytes + Eq + Hash + Debug, LISTENER: CmdTunnelListener<M, R, W>> CmdNode<LEN, CMD, M, ClassifiedCmdSend<C, M, R, W, LEN, CMD>, ClassifiedSendGuard<CmdNodeTunnelClassification<C>, M, ClassifiedCmdSend<C, M, R, W, LEN, CMD>, ClassifiedCmdNodeWriteFactory<C, M, R, W, F, LEN, CMD, LISTENER>>> for DefaultClassifiedCmdNode<C, M, R, W, F, LEN, CMD, LISTENER>
fn register_cmd_handler(&self, cmd: CMD, handler: impl CmdHandler<LEN, CMD>)
fn send<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
peer_id: &'life1 PeerId,
cmd: CMD,
version: u8,
body: &'life2 [u8],
) -> Pin<Box<dyn Future<Output = CmdResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn send_with_resp<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
peer_id: &'life1 PeerId,
cmd: CMD,
version: u8,
body: &'life2 [u8],
timeout: Duration,
) -> Pin<Box<dyn Future<Output = CmdResult<CmdBody>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn send2<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
peer_id: &'life1 PeerId,
cmd: CMD,
version: u8,
body: &'life2 [&'life3 [u8]],
) -> Pin<Box<dyn Future<Output = CmdResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
fn send2_with_resp<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
peer_id: &'life1 PeerId,
cmd: CMD,
version: u8,
body: &'life2 [&'life3 [u8]],
timeout: Duration,
) -> Pin<Box<dyn Future<Output = CmdResult<CmdBody>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
fn send_cmd<'life0, 'life1, 'async_trait>(
&'life0 self,
peer_id: &'life1 PeerId,
cmd: CMD,
version: u8,
body: CmdBody,
) -> Pin<Box<dyn Future<Output = CmdResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn send_cmd_with_resp<'life0, 'life1, 'async_trait>(
&'life0 self,
peer_id: &'life1 PeerId,
cmd: CMD,
version: u8,
body: CmdBody,
timeout: Duration,
) -> Pin<Box<dyn Future<Output = CmdResult<CmdBody>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn send_by_specify_tunnel<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
peer_id: &'life1 PeerId,
tunnel_id: TunnelId,
cmd: CMD,
version: u8,
body: &'life2 [u8],
) -> Pin<Box<dyn Future<Output = CmdResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn send_by_specify_tunnel_with_resp<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
peer_id: &'life1 PeerId,
tunnel_id: TunnelId,
cmd: CMD,
version: u8,
body: &'life2 [u8],
timeout: Duration,
) -> Pin<Box<dyn Future<Output = CmdResult<CmdBody>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn send2_by_specify_tunnel<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
peer_id: &'life1 PeerId,
tunnel_id: TunnelId,
cmd: CMD,
version: u8,
body: &'life2 [&'life3 [u8]],
) -> Pin<Box<dyn Future<Output = CmdResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
fn send2_by_specify_tunnel_with_resp<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
peer_id: &'life1 PeerId,
tunnel_id: TunnelId,
cmd: CMD,
version: u8,
body: &'life2 [&'life3 [u8]],
timeout: Duration,
) -> Pin<Box<dyn Future<Output = CmdResult<CmdBody>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
fn send_cmd_by_specify_tunnel<'life0, 'life1, 'async_trait>(
&'life0 self,
peer_id: &'life1 PeerId,
tunnel_id: TunnelId,
cmd: CMD,
version: u8,
body: CmdBody,
) -> Pin<Box<dyn Future<Output = CmdResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn send_cmd_by_specify_tunnel_with_resp<'life0, 'life1, 'async_trait>(
&'life0 self,
peer_id: &'life1 PeerId,
tunnel_id: TunnelId,
cmd: CMD,
version: u8,
body: CmdBody,
timeout: Duration,
) -> Pin<Box<dyn Future<Output = CmdResult<CmdBody>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn clear_all_tunnel<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_send<'life0, 'life1, 'async_trait>(
&'life0 self,
peer_id: &'life1 PeerId,
tunnel_id: TunnelId,
) -> Pin<Box<dyn Future<Output = CmdResult<ClassifiedCmdNodeSendGuard<C, M, R, W, F, LEN, CMD, LISTENER>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Auto Trait Implementations§
impl<C, M, R, W, F, LEN, CMD, LISTENER> Freeze for DefaultClassifiedCmdNode<C, M, R, W, F, LEN, CMD, LISTENER>
impl<C, M, R, W, F, LEN, CMD, LISTENER> !RefUnwindSafe for DefaultClassifiedCmdNode<C, M, R, W, F, LEN, CMD, LISTENER>
impl<C, M, R, W, F, LEN, CMD, LISTENER> Send for DefaultClassifiedCmdNode<C, M, R, W, F, LEN, CMD, LISTENER>
impl<C, M, R, W, F, LEN, CMD, LISTENER> Sync for DefaultClassifiedCmdNode<C, M, R, W, F, LEN, CMD, LISTENER>
impl<C, M, R, W, F, LEN, CMD, LISTENER> Unpin for DefaultClassifiedCmdNode<C, M, R, W, F, LEN, CMD, LISTENER>
impl<C, M, R, W, F, LEN, CMD, LISTENER> !UnwindSafe for DefaultClassifiedCmdNode<C, M, R, W, F, LEN, CMD, LISTENER>
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