pub enum SmartMessageSource {
Unknown,
File(PathBuf),
RrdHttpStream {
url: String,
},
RrdWebEventCallback,
JsChannelPush,
Sdk,
WsClient {
ws_server_url: String,
},
TcpClient {
addr: Option<SocketAddr>,
},
Stdin,
}
Expand description
Identifies who/what sent a particular message in a smart channel.
Due to the multiplexed nature of the smart channel, every message coming in can originate from a different source.
Variants§
Unknown
The source is unknown.
This is only used when we need to allocate a sender but cannot yet know what that the
source is.
This should never be used to send a message; use Sender::clone_as
to specify the source
of a Sender
after its creation.
File(PathBuf)
The sender is a background thread reading data from a file on disk.
RrdHttpStream
The sender is a background thread fetching data from an HTTP file server.
RrdWebEventCallback
The sender is a javascript callback triggered by a postMessage
event.
Only applicable to web browser iframes.
JsChannelPush
The sender is a javascript client submitting an RRD directly as bytes.
Sdk
The sender is a Rerun SDK running from another thread in the same process.
WsClient
The sender is a WebSocket client fetching data from a Rerun WebSocket server.
We are likely running in a web browser.
TcpClient
The sender is a TCP client.
Fields
addr: Option<SocketAddr>
Stdin
The data is streaming in from standard input.
Trait Implementations§
source§impl Clone for SmartMessageSource
impl Clone for SmartMessageSource
source§fn clone(&self) -> SmartMessageSource
fn clone(&self) -> SmartMessageSource
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for SmartMessageSource
impl Debug for SmartMessageSource
source§impl Display for SmartMessageSource
impl Display for SmartMessageSource
source§impl Hash for SmartMessageSource
impl Hash for SmartMessageSource
source§impl PartialEq for SmartMessageSource
impl PartialEq for SmartMessageSource
source§fn eq(&self, other: &SmartMessageSource) -> bool
fn eq(&self, other: &SmartMessageSource) -> bool
self
and other
values to be equal, and is used
by ==
.