pub type DownloadMsg = WithChannels<DownloadRequest, SwarmProtocol>;Expand description
Type alias for WithChannels<#inner_type, #service_name>
Aliased Type§
pub struct DownloadMsg {
pub inner: DownloadRequest,
pub tx: Sender<DownloadProgressItem>,
pub rx: NoReceiver,
pub span: Span,
}Fields§
§inner: DownloadRequestThe inner message.
tx: Sender<DownloadProgressItem>The return channel to send the response to. Can be set to [crate::channel::none::NoSender] if not needed.
rx: NoReceiverThe request channel to receive the request from. Can be set to [NoReceiver] if not needed.
span: SpanThe current span where the full message was created.