pub struct Hello {
pub protocol_version: u32,
pub client: ClientMeta,
pub cwd: PathBuf,
pub client_version: String,
pub env: Option<SessionEnv>,
pub env_stripped: Vec<String>,
pub reconnect_of: Option<ClientReconnect>,
}Fields§
§protocol_version: u32§client: ClientMeta§cwd: PathBuf§client_version: String§env: Option<SessionEnv>Client environment snapshot (secrets and SYNAPS_CLIENT_*/SYNAPS_TUI_*/
SYNAPS_DAEMON_*/SYNAPS_MEM_TRACE* stripped). None = in-process
(inherit process env). Legacy frames without this field decode as None.
env_stripped: Vec<String>Names of env vars stripped as secrets at the client (T5). Names only,
never values. serde(default) → legacy frames decode as empty.
reconnect_of: Option<ClientReconnect>Set when re-connecting after Reloading/EOF (C3/A4).
Implementations§
Source§impl Hello
impl Hello
pub fn new(kind: ClientKind) -> Self
Sourcepub fn with_history(self, history: HistoryMode) -> Self
pub fn with_history(self, history: HistoryMode) -> Self
Ask for Full (mirror) or Digest (digest + display tail) history.
Sourcepub fn with_tail_items(self, tail_items: usize) -> Self
pub fn with_tail_items(self, tail_items: usize) -> Self
Display items wanted in Attached.display_tail / DisplayTail queries.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Hello
impl<'de> Deserialize<'de> for Hello
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 Hello
impl RefUnwindSafe for Hello
impl Send for Hello
impl Sync for Hello
impl Unpin for Hello
impl UnsafeUnpin for Hello
impl UnwindSafe for Hello
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
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> 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.