pub struct RoomInfo { /* private fields */ }
Expand description

The underlying pure data structure for joined and left rooms.

Holds all the info needed to persist a room into the state store.

Implementations

Mark this Room as joined

Mark this Room as left

Mark this Room as invited

Mark this Room as having all the members synced

Mark this Room still missing member information

Set the prev_batch-token. Returns whether the token has differed and thus has been upgraded: false means no update was applied as the were the same

Whether this is an encrypted Room

Handle the given state event.

Returns true if the event modified the info, false otherwise.

Handle the given stripped state event.

Returns true if the event modified the info, false otherwise.

Handle the given redaction.

Returns true if the event modified the info, false otherwise.

Update the notifications count

Update the RoomSummary

Returns true if the Summary modified the info, false otherwise.

The number of active members (invited + joined) in the room.

The return value is saturated at u64::MAX.

Get the canonical alias of this room.

Get the alternative aliases of this room.

Get the room ID of this room.

Get the room version of this room.

Get the room type of this room.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. Read more

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current 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.

Should always be Self

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

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.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more