pub enum DaemonRequest {
Register(NodeRegisterRequest),
Subscribe,
SendMessage {
output_id: DataId,
metadata: Metadata,
data: Option<DataMessage>,
},
CloseOutputs(Vec<DataId>),
OutputsDone,
NextEvent {
drop_tokens: Vec<DropToken>,
},
ReportDropTokens {
drop_tokens: Vec<DropToken>,
},
SubscribeDrop,
NextFinishedDropTokens,
EventStreamDropped,
NodeConfig {
node_id: NodeId,
},
}Variants§
Register(NodeRegisterRequest)
Subscribe
SendMessage
CloseOutputs(Vec<DataId>)
OutputsDone
Signals that the node is finished sending outputs and that it received all required drop tokens.
NextEvent
ReportDropTokens
SubscribeDrop
NextFinishedDropTokens
EventStreamDropped
NodeConfig
Implementations§
Source§impl DaemonRequest
impl DaemonRequest
pub fn expects_tcp_bincode_reply(&self) -> bool
pub fn expects_tcp_json_reply(&self) -> bool
Trait Implementations§
Source§impl Clone for DaemonRequest
impl Clone for DaemonRequest
Source§fn clone(&self) -> DaemonRequest
fn clone(&self) -> DaemonRequest
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DaemonRequest
impl Debug for DaemonRequest
Source§impl<'de> Deserialize<'de> for DaemonRequest
impl<'de> Deserialize<'de> for DaemonRequest
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>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for DaemonRequest
impl RefUnwindSafe for DaemonRequest
impl Send for DaemonRequest
impl Sync for DaemonRequest
impl Unpin for DaemonRequest
impl UnwindSafe for DaemonRequest
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
Mutably borrows from an owned value. Read more