pub enum DaemonFrame {
Show 15 variants
Welcome(Welcome),
Refused {
reason: RefuseReason,
message: String,
},
Pong {
pid: u32,
uptime_s: u64,
sessions: usize,
},
SessionList {
sessions: Vec<SessionMeta>,
},
Attached(AttachedWire),
Event(WireEnvelope),
Error {
session_id: Option<SessionId>,
message: String,
},
Closed {
session_id: SessionId,
text: String,
},
Pinned {
session_id: SessionId,
on: bool,
},
Renamed {
session_id: SessionId,
name: Option<String>,
in_memory_only: bool,
},
RenameFailed {
session_id: SessionId,
reason: RenameRefusal,
message: String,
taken_by: Option<String>,
current_name: Option<String>,
},
ExtensionReloaded {
report: ExtensionReloadReport,
},
ExtensionReloadFailed {
extension: String,
message: String,
unloaded: bool,
},
Bye {
reason: Option<ByeReason>,
},
AuthState {
report: AuthStateReport,
},
}Variants§
Welcome(Welcome)
Refused
Then the daemon closes.
Pong
SessionList
Fields
sessions: Vec<SessionMeta>Attached(AttachedWire)
Event(WireEnvelope)
Error
Closed
Reply to Close: the session ended; text is the actor’s /close
reply (how to continue it).
Pinned
Reply to Pin: the session’s pin is now on.
Renamed
Reply to Rename: the session’s name is now name (None =
cleared), saved durably (file mtime kept), and every attached client
got a Conversation. in_memory_only: the session is not persisted
(persist: false), so nothing was written.
RenameFailed
Reply to Rename: the name was not changed (except unknown: it may
still apply; re-list before retrying). taken_by is the journal id
of the saved session holding the name (e.g.
20261028-045932-eb8e); current_name is the session’s name when a
precondition failed (named).
Fields
reason: RenameRefusalExtensionReloaded
Reply to ReloadExtension: the new version is loaded.
Fields
report: ExtensionReloadReportExtensionReloadFailed
Reply to ReloadExtension: it was not reloaded. unloaded: the old
instance was stopped before the new one failed to start, so the
extension is not loaded now; false = the running one (if any) was
not touched.
Bye
Some(Reloading{..}) before exec; None otherwise (today).
AuthState
Reply to ClientFrame::AuthState. Labels, kinds and times only:
never token material, emails, account ids or identity hashes.
Fields
report: AuthStateReportTrait Implementations§
Source§impl Debug for DaemonFrame
impl Debug for DaemonFrame
Source§impl<'de> Deserialize<'de> for DaemonFrame
impl<'de> Deserialize<'de> for DaemonFrame
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 Freeze for DaemonFrame
impl RefUnwindSafe for DaemonFrame
impl Send for DaemonFrame
impl Sync for DaemonFrame
impl Unpin for DaemonFrame
impl UnsafeUnpin for DaemonFrame
impl UnwindSafe for DaemonFrame
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> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§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.Source§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.Source§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.Source§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.