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,
RerunGrpcStream {
url: String,
},
}
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.
RerunGrpcStream
The data is streaming in directly from a Rerun Data Platform server, over gRPC.
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 ==
.source§impl Serialize for SmartChannelSource
impl Serialize for SmartChannelSource
impl Eq for SmartChannelSource
impl StructuralPartialEq for SmartChannelSource
Auto Trait Implementations§
impl Freeze for SmartChannelSource
impl RefUnwindSafe for SmartChannelSource
impl Send for SmartChannelSource
impl Sync for SmartChannelSource
impl Unpin for SmartChannelSource
impl UnwindSafe for SmartChannelSource
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
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.§impl<T> DowncastSync for T
impl<T> DowncastSync for T
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more