pub enum FrontendRequest {
Show 14 variants
Activate(ClientHandle, bool),
Create,
ChangePort(u16),
Delete(ClientHandle),
Enumerate(),
ResolveDns(ClientHandle),
UpdateHostname(ClientHandle, Option<String>),
UpdatePort(ClientHandle, u16),
UpdatePosition(ClientHandle, Position),
UpdateFixIps(ClientHandle, Vec<IpAddr>),
GetState(ClientHandle),
EnableCapture,
EnableEmulation,
Sync,
}
Variants§
Activate(ClientHandle, bool)
activate/deactivate client
Create
add a new client
ChangePort(u16)
change the listen port (recreate udp listener)
Delete(ClientHandle)
remove a client
Enumerate()
request an enumeration of all clients
ResolveDns(ClientHandle)
resolve dns
UpdateHostname(ClientHandle, Option<String>)
update hostname
UpdatePort(ClientHandle, u16)
update port
UpdatePosition(ClientHandle, Position)
update position
UpdateFixIps(ClientHandle, Vec<IpAddr>)
update fix-ips
GetState(ClientHandle)
request the state of the given client
EnableCapture
request reenabling input capture
EnableEmulation
request reenabling input emulation
Sync
synchronize all state
Trait Implementations§
Source§impl Clone for FrontendRequest
impl Clone for FrontendRequest
Source§fn clone(&self) -> FrontendRequest
fn clone(&self) -> FrontendRequest
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 FrontendRequest
impl Debug for FrontendRequest
Source§impl<'de> Deserialize<'de> for FrontendRequest
impl<'de> Deserialize<'de> for FrontendRequest
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
Source§impl PartialEq for FrontendRequest
impl PartialEq for FrontendRequest
Source§impl Serialize for FrontendRequest
impl Serialize for FrontendRequest
impl Eq for FrontendRequest
impl StructuralPartialEq for FrontendRequest
Auto Trait Implementations§
impl Freeze for FrontendRequest
impl RefUnwindSafe for FrontendRequest
impl Send for FrontendRequest
impl Sync for FrontendRequest
impl Unpin for FrontendRequest
impl UnwindSafe for FrontendRequest
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
)