Type Alias DownloadMsg

Source
pub type DownloadMsg = WithChannels<DownloadRequest, DownloaderService>;
Expand description

Type alias for WithChannels<#inner_type, #service_name>

Aliased Type§

pub struct DownloadMsg {
    pub inner: DownloadRequest,
    pub tx: Sender<DownloadProgessItem>,
    pub rx: NoReceiver,
    pub span: Span,
}

Fields§

§inner: DownloadRequest

The inner message.

§tx: Sender<DownloadProgessItem>

The return channel to send the response to. Can be set to [crate::channel::none::NoSender] if not needed.

§rx: NoReceiver

The request channel to receive the request from. Can be set to [NoReceiver] if not needed.

§span: Span

The current span where the full message was created.