pub enum FrontendEvent {
Changed(ClientHandle),
Created(ClientHandle, ClientConfig, ClientState),
NoSuchClient(ClientHandle),
State(ClientHandle, ClientConfig, ClientState),
Deleted(ClientHandle),
PortChanged(u16, Option<String>),
Enumerate(Vec<(ClientHandle, ClientConfig, ClientState)>),
Error(String),
CaptureStatus(Status),
EmulationStatus(Status),
}
Variants§
Changed(ClientHandle)
client state has changed, new state must be requested via FrontendRequest::GetState
Created(ClientHandle, ClientConfig, ClientState)
a client was created
NoSuchClient(ClientHandle)
no such client
State(ClientHandle, ClientConfig, ClientState)
state changed
Deleted(ClientHandle)
the client was deleted
PortChanged(u16, Option<String>)
new port, reason of failure (if failed)
Enumerate(Vec<(ClientHandle, ClientConfig, ClientState)>)
list of all clients, used for initial state synchronization
Error(String)
an error occured
CaptureStatus(Status)
capture status
EmulationStatus(Status)
emulation status
Trait Implementations§
Source§impl Clone for FrontendEvent
impl Clone for FrontendEvent
Source§fn clone(&self) -> FrontendEvent
fn clone(&self) -> FrontendEvent
Returns a copy 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 FrontendEvent
impl Debug for FrontendEvent
Source§impl<'de> Deserialize<'de> for FrontendEvent
impl<'de> Deserialize<'de> for FrontendEvent
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 FrontendEvent
impl RefUnwindSafe for FrontendEvent
impl Send for FrontendEvent
impl Sync for FrontendEvent
impl Unpin for FrontendEvent
impl UnwindSafe for FrontendEvent
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,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)