Enum TestAppStatus
pub enum TestAppStatus {
HandlersRegistered,
ElementFocused,
// some variants omitted
}
Variants§
HandlersRegistered
Must of input tests (mouse / touch) only require HANDLERS_REGISTERED. HANDLERS_REGISTERED means test app has started and event handlers are registered.
ElementFocused
Keyboard related tests may require ELEMENT_FOCUSED status before inject key events. For example Chromium related tests, event handler is registered to a
Implementations§
§impl TestAppStatus
impl TestAppStatus
pub fn from_primitive(prim: u16) -> Option<TestAppStatus>
pub fn from_primitive_allow_unknown(prim: u16) -> TestAppStatus
pub fn unknown() -> TestAppStatus
pub const fn into_primitive(self) -> u16
pub fn is_unknown(&self) -> bool
Trait Implementations§
§impl Clone for TestAppStatus
impl Clone for TestAppStatus
§fn clone(&self) -> TestAppStatus
fn clone(&self) -> TestAppStatus
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 more§impl Debug for TestAppStatus
impl Debug for TestAppStatus
§impl<D> Decode<TestAppStatus, D> for TestAppStatuswhere
D: ResourceDialect,
impl<D> Decode<TestAppStatus, D> for TestAppStatuswhere
D: ResourceDialect,
§fn new_empty() -> TestAppStatus
fn new_empty() -> TestAppStatus
Creates a valid instance of
Self
. The specific value does not matter,
since it will be overwritten by decode
.§impl<D> Encode<TestAppStatus, D> for TestAppStatuswhere
D: ResourceDialect,
impl<D> Encode<TestAppStatus, D> for TestAppStatuswhere
D: ResourceDialect,
§impl Hash for TestAppStatus
impl Hash for TestAppStatus
§impl Ord for TestAppStatus
impl Ord for TestAppStatus
§impl PartialEq for TestAppStatus
impl PartialEq for TestAppStatus
§impl PartialOrd for TestAppStatus
impl PartialOrd for TestAppStatus
§impl TypeMarker for TestAppStatus
impl TypeMarker for TestAppStatus
§type Owned = TestAppStatus
type Owned = TestAppStatus
The owned Rust type which this FIDL type decodes into.
§fn inline_align(_context: Context) -> usize
fn inline_align(_context: Context) -> usize
Returns the minimum required alignment of the inline portion of the
encoded object. It must be a (nonzero) power of two.
§fn inline_size(_context: Context) -> usize
fn inline_size(_context: Context) -> usize
Returns the size of the inline portion of the encoded object, including
padding for alignment. Must be a multiple of
inline_align
.§fn encode_is_copy() -> bool
fn encode_is_copy() -> bool
Returns true if the memory layout of
Self::Owned
matches the FIDL wire
format and encoding requires no validation. When true, we can optimize
encoding arrays and vectors of Self::Owned
to a single memcpy. Read more§fn decode_is_copy() -> bool
fn decode_is_copy() -> bool
Returns true if the memory layout of
Self::Owned
matches the FIDL wire
format and decoding requires no validation. When true, we can optimize
decoding arrays and vectors of Self::Owned
to a single memcpy.§impl ValueTypeMarker for TestAppStatus
impl ValueTypeMarker for TestAppStatus
§type Borrowed<'a> = TestAppStatus
type Borrowed<'a> = TestAppStatus
The Rust type to use for encoding. This is a particular
Encode<Self>
type cheaply obtainable from &Self::Owned
. There are three cases: Read more§fn borrow(
value: &<TestAppStatus as TypeMarker>::Owned,
) -> <TestAppStatus as ValueTypeMarker>::Borrowed<'_>
fn borrow( value: &<TestAppStatus as TypeMarker>::Owned, ) -> <TestAppStatus as ValueTypeMarker>::Borrowed<'_>
Cheaply converts from
&Self::Owned
to Self::Borrowed
.impl Copy for TestAppStatus
impl Eq for TestAppStatus
impl StructuralPartialEq for TestAppStatus
Auto Trait Implementations§
impl Freeze for TestAppStatus
impl RefUnwindSafe for TestAppStatus
impl Send for TestAppStatus
impl Sync for TestAppStatus
impl Unpin for TestAppStatus
impl UnwindSafe for TestAppStatus
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