pub enum VNCDisplay {
To(usize),
Network {
host: Option<String>,
display: usize,
},
Unix(PathBuf),
None,
}Expand description
A VNC server endpoint for -vnc.
Variants§
Trait Implementations§
Source§impl Arbitrary for VNCDisplay
impl Arbitrary for VNCDisplay
Source§type Parameters = (<usize as Arbitrary>::Parameters, (<Option<String> as Arbitrary>::Parameters, <usize as Arbitrary>::Parameters), <PathBuf as Arbitrary>::Parameters)
type Parameters = (<usize as Arbitrary>::Parameters, (<Option<String> as Arbitrary>::Parameters, <usize as Arbitrary>::Parameters), <PathBuf as Arbitrary>::Parameters)
The type of parameters that
arbitrary_with accepts for configuration
of the generated Strategy. Parameters must implement Default.Source§type Strategy = TupleUnion<((u32, Arc<Map<<usize as Arbitrary>::Strategy, fn(usize) -> VNCDisplay>>), (u32, Arc<Map<(<Option<String> as Arbitrary>::Strategy, <usize as Arbitrary>::Strategy), fn((Option<String>, usize)) -> VNCDisplay>>), (u32, Arc<Map<<PathBuf as Arbitrary>::Strategy, fn(PathBuf) -> VNCDisplay>>), (u32, Arc<fn() -> VNCDisplay>))>
type Strategy = TupleUnion<((u32, Arc<Map<<usize as Arbitrary>::Strategy, fn(usize) -> VNCDisplay>>), (u32, Arc<Map<(<Option<String> as Arbitrary>::Strategy, <usize as Arbitrary>::Strategy), fn((Option<String>, usize)) -> VNCDisplay>>), (u32, Arc<Map<<PathBuf as Arbitrary>::Strategy, fn(PathBuf) -> VNCDisplay>>), (u32, Arc<fn() -> VNCDisplay>))>
The type of
Strategy used to generate values of type Self.Source§fn arbitrary_with(_top: Self::Parameters) -> Self::Strategy
fn arbitrary_with(_top: Self::Parameters) -> Self::Strategy
Source§impl Clone for VNCDisplay
impl Clone for VNCDisplay
Source§fn clone(&self) -> VNCDisplay
fn clone(&self) -> VNCDisplay
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 VNCDisplay
impl Debug for VNCDisplay
Source§impl Hash for VNCDisplay
impl Hash for VNCDisplay
Source§impl Ord for VNCDisplay
impl Ord for VNCDisplay
Source§fn cmp(&self, other: &VNCDisplay) -> Ordering
fn cmp(&self, other: &VNCDisplay) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for VNCDisplay
impl PartialEq for VNCDisplay
Source§impl PartialOrd for VNCDisplay
impl PartialOrd for VNCDisplay
impl Eq for VNCDisplay
impl StructuralPartialEq for VNCDisplay
Auto Trait Implementations§
impl Freeze for VNCDisplay
impl RefUnwindSafe for VNCDisplay
impl Send for VNCDisplay
impl Sync for VNCDisplay
impl Unpin for VNCDisplay
impl UnsafeUnpin for VNCDisplay
impl UnwindSafe for VNCDisplay
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