pub enum ServerPush {
ScreenSnapshot {
pane_id: PaneId,
cells: Vec<Vec<ScreenCell>>,
cursor: CursorPos,
size: (u16, u16),
cursor_visible: bool,
title: String,
},
LayoutChanged(LayoutInfo),
Error {
message: String,
},
ServerShutdown,
}Expand description
Messages pushed from server to an attached client.
Variants§
Trait Implementations§
Source§impl Clone for ServerPush
impl Clone for ServerPush
Source§fn clone(&self) -> ServerPush
fn clone(&self) -> ServerPush
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ServerPush
impl Debug for ServerPush
Source§impl<'de> Deserialize<'de> for ServerPush
impl<'de> Deserialize<'de> for ServerPush
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 ServerPush
impl RefUnwindSafe for ServerPush
impl Send for ServerPush
impl Sync for ServerPush
impl Unpin for ServerPush
impl UnsafeUnpin for ServerPush
impl UnwindSafe for ServerPush
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