pub enum SmartChannelSource {
File(PathBuf),
RrdHttpStream {
url: String,
follow: bool,
},
RrdWebEventListener,
JsChannel {
channel_name: String,
},
Sdk,
WsClient {
ws_server_url: String,
},
TcpServer {
port: u16,
},
Stdin,
}
Expand description
Identifies in what context this smart channel was created, and who/what is holding its receiving end.
Variants§
File(PathBuf)
The channel was created in the context of loading a file from disk (could be
.rrd
files, or .glb
, .png
, …).
RrdHttpStream
The channel was created in the context of loading an .rrd
file over http.
The follow
flag indicates whether the viewer should open the stream in Following
mode rather than Playing
mode.
RrdWebEventListener
The channel was created in the context of loading an .rrd
file from a postMessage
js event.
Only applicable to web browser iframes. Used for the inline web viewer in a notebook.
JsChannel
The channel was created in the context of a javascript client submitting an RRD directly as bytes.
Sdk
The channel was created in the context of loading data using a Rerun SDK sharing the same process.
WsClient
The channel was created in the context of fetching data from a Rerun WebSocket server.
We are likely running in a web browser.
TcpServer
The channel was created in the context of receiving data from one or more Rerun SDKs over TCP.
We are a TCP server listening on this port.
Stdin
The channel was created in the context of streaming in RRD data from standard input.
Implementations§
source§impl SmartChannelSource
impl SmartChannelSource
pub fn is_network(&self) -> bool
Trait Implementations§
source§impl Clone for SmartChannelSource
impl Clone for SmartChannelSource
source§fn clone(&self) -> SmartChannelSource
fn clone(&self) -> SmartChannelSource
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for SmartChannelSource
impl Debug for SmartChannelSource
source§impl<'de> Deserialize<'de> for SmartChannelSource
impl<'de> Deserialize<'de> for SmartChannelSource
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>,
source§impl Display for SmartChannelSource
impl Display for SmartChannelSource
source§impl Hash for SmartChannelSource
impl Hash for SmartChannelSource
source§impl PartialEq for SmartChannelSource
impl PartialEq for SmartChannelSource
source§fn eq(&self, other: &SmartChannelSource) -> bool
fn eq(&self, other: &SmartChannelSource) -> bool
self
and other
values to be equal, and is used
by ==
.