Enum TestRoom
Source pub enum TestRoom {
Default,
V12,
Other,
Invited,
Left,
}
Expand description
A Matrix test room.
This can be converted to the following types with .into():
&'static RoomId
OwnedRoomId
&'static RoomOrAliasId
OwnedRoomOrAliasId
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<OwnedRoomId> 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().
The default room ID, !SVkFJHzfwvuaIEawgC:localhost.
A room with an ID using the format introduced in room version 12,
!2n76rSaCoTdcb1-zm9dcLm0laKJnuPyE80mopRnYgmg.
Another room ID, !another_room:homeserver.localhost.
An ID for an invited room, !invited:matrix.local.
An ID for a room that was left, !left:matrix.local.
Performs copy-assignment from
source.
Read more
Formats the value using the given formatter.
Read more
Returns the “default value” for a type.
Read more
Formats the value using the given formatter.
Read more
Compare self to key and return true if they are equal.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Serialize this value into the given Serde serializer.
Read more
Immutably borrows from an owned value.
Read more
Mutably borrows from an owned value.
Read more
🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from
self to
dest.
Read more
Applies the [
Compat] adapter by value.
Read more
Applies the [
Compat] adapter by shared reference.
Read more
Applies the [
Compat] adapter by mutable reference.
Read more
The DropFlavor that
wraps
T into
Self
Returns the argument unchanged.
Create a new handle for an Arc value
Read more
Consume a handle, getting back the initial
Arc<> Read more
Get a clone of the
Arc<> using a “borrowed” handle.
Read more
A constant of the type witness
Proof that Self is the same type as Self::Type,
provides methods for casting between Self and Self::Type.
The same type as Self,
used to emulate type equality bounds (T == U)
with associated type equality constraints
(T: Identity<Type = U>).
Instruments this type with the provided
Span, returning an
Instrumented wrapper.
Read more
Calls U::from(self).
That is, this conversion is whatever the implementation of
From<T> for U chooses to do.
Convert to the intended resettable type
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning.
Read more
Uses borrowed data to replace owned data, usually by cloning.
Read more
Converts the given value to a
String.
Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.