Struct grafana_plugin_sdk::backend::StreamPacket [−][src]
pub struct StreamPacket<J = ()> { /* fields omitted */ }
Expand description
A packet of data to be streamed back to the subscribed client.
Such data can be:
- a
Frame
, which will be serialized to JSON before being sent back to the client - arbitrary JSON
- arbitrary bytes.
The J
type parameter on this enum is only relevant when JSON data
is being streamed back,
Implementations
Create a StreamPacket representing a Frame
.
Create a StreamPacket representing some JSON.
Create a StreamPacket from arbitrary bytes.
Trait Implementations
Auto Trait Implementations
impl<J> RefUnwindSafe for StreamPacket<J> where
J: RefUnwindSafe,
impl<J> Send for StreamPacket<J> where
J: Send,
impl<J> Sync for StreamPacket<J> where
J: Sync,
impl<J> Unpin for StreamPacket<J> where
J: Unpin,
impl<J> UnwindSafe for StreamPacket<J> where
J: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
Wrap the input message T
in a tonic::Request
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more