pub enum CoreEvent {
PtyOutput {
connection_id: String,
generation: u64,
data: Vec<u8>,
},
ConnectionStatus {
connection_id: String,
status: ConnectionStatus,
},
TransferProgress {
connection_id: String,
path: String,
bytes_transferred: u64,
total_bytes: u64,
},
TcpdumpLine {
capture_id: u64,
line: String,
is_stderr: bool,
},
}Expand description
All event kinds that cross the async-to-sync boundary.
Variants§
PtyOutput
PTY output data for a connection.
generation is the PTY-session counter the publisher captured at
start_pty_connection time. Consumers (Swift native, future
CLI harness) compare it against the latest generation they’ve
seen to discard frames from a PTY session that has since been
torn down and replaced — without it, the brief tail of in-flight
output from an old session can spill into a new one.
ConnectionStatus
A connection’s status changed.
TransferProgress
File transfer progress.
TcpdumpLine
One line from a streaming tcpdump capture. Stderr lines (e.g.
libpcap startup banner) carry is_stderr = true so the UI can
dim them.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CoreEvent
impl RefUnwindSafe for CoreEvent
impl Send for CoreEvent
impl Sync for CoreEvent
impl Unpin for CoreEvent
impl UnsafeUnpin for CoreEvent
impl UnwindSafe for CoreEvent
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