pub enum TestDevice {
Default,
Alt1,
Alt2,
Alt3,
}Expand description
A Matrix test device.
This can be converted to the following types with .into():
&'static DeviceIdOwnedDeviceId
It implements PartialEq with all the ID types above, as well as with
serde_json::Value to use with the assert_eq! macro.
It implements Serialize and Into<String> to use it with the json!
macro.
It implements Hash and Equivalent<OwnedDeviceId> as well to be able to
use it with methods like IndexMap::get() or IndexMap::contains_key().
It can also be converted to a borrowed string with .as_str() to use it
with methods like HashMap::get() or HashSet::contains().
Variants§
Default
The default device ID, MYD3V1C31D.
Alt1
The first alternative device ID, JLAFKJWSCS.
Alt2
The second alternative device ID, ILMLKASTES.
Alt3
The third alternative device ID, WSKKLTJZCL.
Implementations§
Trait Implementations§
Source§impl Clone for TestDevice
impl Clone for TestDevice
impl Copy for TestDevice
Source§impl Debug for TestDevice
impl Debug for TestDevice
Source§impl Default for TestDevice
impl Default for TestDevice
Source§impl Display for TestDevice
impl Display for TestDevice
Source§impl Equivalent<OwnedDeviceId> for TestDevice
impl Equivalent<OwnedDeviceId> for TestDevice
Source§fn equivalent(&self, key: &OwnedDeviceId) -> bool
fn equivalent(&self, key: &OwnedDeviceId) -> bool
Compare self to
key and return true if they are equal.Source§impl From<TestDevice> for OwnedDeviceId
impl From<TestDevice> for OwnedDeviceId
Source§fn from(device: TestDevice) -> Self
fn from(device: TestDevice) -> Self
Converts to this type from the input type.
Source§impl From<TestDevice> for &'static DeviceId
impl From<TestDevice> for &'static DeviceId
Source§fn from(device: TestDevice) -> Self
fn from(device: TestDevice) -> Self
Converts to this type from the input type.
Source§impl From<TestDevice> for String
impl From<TestDevice> for String
Source§fn from(device: TestDevice) -> Self
fn from(device: TestDevice) -> Self
Converts to this type from the input type.
Source§impl Hash for TestDevice
impl Hash for TestDevice
Source§impl PartialEq<&DeviceId> for TestDevice
impl PartialEq<&DeviceId> for TestDevice
Source§impl PartialEq<&OwnedDeviceId> for TestDevice
impl PartialEq<&OwnedDeviceId> for TestDevice
Source§impl PartialEq<OwnedDeviceId> for TestDevice
impl PartialEq<OwnedDeviceId> for TestDevice
Source§impl PartialEq<TestDevice> for OwnedDeviceId
impl PartialEq<TestDevice> for OwnedDeviceId
Source§impl PartialEq<TestDevice> for &OwnedDeviceId
impl PartialEq<TestDevice> for &OwnedDeviceId
Source§impl PartialEq<TestDevice> for &DeviceId
impl PartialEq<TestDevice> for &DeviceId
Source§impl PartialEq<TestDevice> for Value
impl PartialEq<TestDevice> for Value
Source§impl PartialEq<Value> for TestDevice
impl PartialEq<Value> for TestDevice
Auto Trait Implementations§
impl Freeze for TestDevice
impl RefUnwindSafe for TestDevice
impl Send for TestDevice
impl Sync for TestDevice
impl Unpin for TestDevice
impl UnsafeUnpin for TestDevice
impl UnwindSafe for TestDevice
Blanket Implementations§
impl<T> AsyncTraitDeps for Twhere
T: Debug + SendOutsideWasm + SyncOutsideWasm,
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,
§impl<T> CompatExt for T
impl<T> CompatExt for T
Source§impl<T> DropFlavorWrapper<T> for T
impl<T> DropFlavorWrapper<T> for T
impl<T> ErasedDestructor for Twhere
T: 'static,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T, UT> HandleAlloc<UT> for T
impl<T, UT> HandleAlloc<UT> for T
Source§impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
Source§impl<T> Identity for Twhere
T: ?Sized,
impl<T> Identity for Twhere
T: ?Sized,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<I> IntoResettable<String> for I
impl<I> IntoResettable<String> for I
Source§fn into_resettable(self) -> Resettable<String>
fn into_resettable(self) -> Resettable<String>
Convert to the intended resettable type