pub enum DaemonFrame {
Show 13 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,
},
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.
ExtensionReloaded
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>,
Deserialize this value from the given Serde deserializer. Read more
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
Mutably borrows from an owned value. Read more
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>
Convert
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>
Convert
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)
Convert
&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)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.