pub struct KnockedRoomBuilder { /* private fields */ }
Implementations§
Source§impl KnockedRoomBuilder
impl KnockedRoomBuilder
Sourcepub fn new(room_id: &RoomId) -> Self
pub fn new(room_id: &RoomId) -> Self
Create a new KnockedRoomBuilder
for the given room ID.
If the room ID is DEFAULT_TEST_ROOM_ID
,
KnockedRoomBuilder::default()
can be used instead.
Sourcepub fn room_id(&self) -> &RoomId
pub fn room_id(&self) -> &RoomId
Get the room ID of this KnockedRoomBuilder
.
Sourcepub fn add_state_event(self, event: StrippedStateTestEvent) -> Self
pub fn add_state_event(self, event: StrippedStateTestEvent) -> Self
Add an event to the state.
Sourcepub fn add_state_bulk<I>(self, events: I) -> Self
pub fn add_state_bulk<I>(self, events: I) -> Self
Add events to the state in bulk.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for KnockedRoomBuilder
impl RefUnwindSafe for KnockedRoomBuilder
impl Send for KnockedRoomBuilder
impl Sync for KnockedRoomBuilder
impl Unpin for KnockedRoomBuilder
impl UnwindSafe for KnockedRoomBuilder
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
§impl<T> CompatExt for T
impl<T> CompatExt for T
Source§impl<T, UT> HandleAlloc<UT> for T
impl<T, UT> HandleAlloc<UT> for T
Source§fn consume_handle(handle: Handle) -> Arc<T>
fn consume_handle(handle: Handle) -> Arc<T>
Consume a handle, getting back the initial
Arc<>