#[non_exhaustive]pub enum DaemonReply {
Result(Result<(), String>),
NextEvents(Vec<Timestamped<NodeEvent>>),
NodeConfig {
result: Result<NodeConfig, String>,
},
ExtensionValue {
value: Option<Vec<u8>>,
},
Empty,
ExtensionReply {
payload: Vec<u8>,
},
}Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Result(Result<(), String>)
NextEvents(Vec<Timestamped<NodeEvent>>)
NodeConfig
Fields
result: Result<NodeConfig, String>ExtensionValue
Reply to DaemonRequest::ExtensionLoad. None means the key is not
in the table — either never stored, or already dropped.
Empty
ExtensionReply
Opaque reply to crate::node_to_daemon::DaemonRequest::ExtensionRequest,
produced by the extension’s daemon half. dora does not interpret it.
Appended last so existing variants keep their postcard indices: the Python node API ships separately (PyPI) from the daemon, so a mixed-version pair must not misdecode older replies.
Implementations§
Source§impl DaemonReply
impl DaemonReply
Sourcepub fn encode_size_hint(&self) -> usize
pub fn encode_size_hint(&self) -> usize
Bulk bytes this reply will contribute to its encoding, for
crate::encode_presized.
NextEvents is a batch, so this sums the per-event hints rather than
relying on the single flat envelope allowance encode_presized adds:
the daemon drains up to NODE_EVENT_CHANNEL_CAPACITY events into one
reply, and a batch of a few dozen would otherwise realloc several times
on envelopes alone.
Trait Implementations§
Source§impl Clone for DaemonReply
impl Clone for DaemonReply
Source§impl Debug for DaemonReply
impl Debug for DaemonReply
Source§impl<'de> Deserialize<'de> for DaemonReply
impl<'de> Deserialize<'de> for DaemonReply
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>,
Auto Trait Implementations§
impl Forget for DaemonReply
impl Freeze for DaemonReplywhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<Timestamped<NodeEvent>>: Freeze,
*const LeafNode<DataId, Input> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(DataId, Input)>>: Freeze,
*const LeafNode<DataId, SetValZST> is !null: Freeze,
PhantomData<Box<(DataId, SetValZST)>>: Freeze,
*const LeafNode<DataId, String> is !null: Freeze,
PhantomData<Box<(DataId, String)>>: Freeze,
*const LeafNode<DataId, OutputFraming> is !null: Freeze,
PhantomData<Box<(DataId, OutputFraming)>>: Freeze,
PhantomData<Value>: Freeze,
PhantomData<usize>: Freeze,
PhantomData<Bucket<Value, Value>>: Freeze,
*const TaggedValue is !null: Freeze,
PhantomData<TaggedValue>: Freeze,
*const LeafNode<DataId, OutputRouting> is !null: Freeze,
PhantomData<Box<(DataId, OutputRouting)>>: Freeze,
impl Move for DaemonReply
impl RefUnwindSafe for DaemonReply
impl Send for DaemonReplywhere
RawVecInner: Send,
Arc<Metadata>: Send,
Arc<DataMessage>: Send,
NodeRef<Owned, DataId, Input, LeafOrInternal>: Send,
BoxRaw<(DataId, Input)>: Send,
NodeRef<Owned, DataId, SetValZST, LeafOrInternal>: Send,
BoxRaw<(DataId, SetValZST)>: Send,
NodeRef<Owned, DataId, String, LeafOrInternal>: Send,
BoxRaw<(DataId, String)>: Send,
NodeRef<Owned, DataId, OutputFraming, LeafOrInternal>: Send,
BoxRaw<(DataId, OutputFraming)>: Send,
RawTable<usize>: Send,
BoxRaw<TaggedValue>: Send,
NodeRef<Owned, DataId, OutputRouting, LeafOrInternal>: Send,
BoxRaw<(DataId, OutputRouting)>: Send,
impl Sync for DaemonReplywhere
RawVecInner: Sync,
Arc<Metadata>: Sync,
Arc<DataMessage>: Sync,
NodeRef<Owned, DataId, Input, LeafOrInternal>: Sync,
BoxRaw<(DataId, Input)>: Sync,
NodeRef<Owned, DataId, SetValZST, LeafOrInternal>: Sync,
BoxRaw<(DataId, SetValZST)>: Sync,
NodeRef<Owned, DataId, String, LeafOrInternal>: Sync,
BoxRaw<(DataId, String)>: Sync,
NodeRef<Owned, DataId, OutputFraming, LeafOrInternal>: Sync,
BoxRaw<(DataId, OutputFraming)>: Sync,
RawTable<usize>: Sync,
BoxRaw<TaggedValue>: Sync,
NodeRef<Owned, DataId, OutputRouting, LeafOrInternal>: Sync,
BoxRaw<(DataId, OutputRouting)>: Sync,
impl Unpin for DaemonReplywhere
*const u8 is !null: Unpin,
Arc<Metadata>: Unpin,
Arc<DataMessage>: Unpin,
*const LeafNode<DataId, Input> is !null: Unpin,
Box<(DataId, Input)>: Unpin,
*const LeafNode<DataId, SetValZST> is !null: Unpin,
Box<(DataId, SetValZST)>: Unpin,
*const LeafNode<DataId, String> is !null: Unpin,
Box<(DataId, String)>: Unpin,
*const LeafNode<DataId, OutputFraming> is !null: Unpin,
Box<(DataId, OutputFraming)>: Unpin,
Box<TaggedValue>: Unpin,
*const LeafNode<DataId, OutputRouting> is !null: Unpin,
Box<(DataId, OutputRouting)>: Unpin,
impl UnsafeUnpin for DaemonReplywhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<Timestamped<NodeEvent>>: UnsafeUnpin,
*const LeafNode<DataId, Input> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(DataId, Input)>>: UnsafeUnpin,
*const LeafNode<DataId, SetValZST> is !null: UnsafeUnpin,
PhantomData<Box<(DataId, SetValZST)>>: UnsafeUnpin,
*const LeafNode<DataId, String> is !null: UnsafeUnpin,
PhantomData<Box<(DataId, String)>>: UnsafeUnpin,
*const LeafNode<DataId, OutputFraming> is !null: UnsafeUnpin,
PhantomData<Box<(DataId, OutputFraming)>>: UnsafeUnpin,
PhantomData<Value>: UnsafeUnpin,
PhantomData<usize>: UnsafeUnpin,
PhantomData<Bucket<Value, Value>>: UnsafeUnpin,
*const TaggedValue is !null: UnsafeUnpin,
PhantomData<TaggedValue>: UnsafeUnpin,
*const LeafNode<DataId, OutputRouting> is !null: UnsafeUnpin,
PhantomData<Box<(DataId, OutputRouting)>>: UnsafeUnpin,
impl UnwindSafe for DaemonReplywhere
RawVecInner: UnwindSafe,
Arc<Metadata>: UnwindSafe,
Arc<DataMessage>: UnwindSafe,
BTreeMap<DataId, Input>: UnwindSafe,
BTreeMap<DataId, SetValZST>: UnwindSafe,
BTreeMap<DataId, String>: UnwindSafe,
BTreeMap<DataId, OutputFraming>: UnwindSafe,
NonNull<u8>: UnwindSafe,
BoxRaw<TaggedValue>: UnwindSafe,
BTreeMap<DataId, OutputRouting>: UnwindSafe,
Blanket Implementations§
impl<T> Allocation for T
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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