pub struct LeaveSpaceHandle { /* private fields */ }Expand description
The LeaveSpaceHandle processes rooms to be left in the order they were
provided by the crate::spaces::SpaceService and annotates them with
extra data to inform the leave process e.g. if the current user is the last
room admin.
Once the upstream client decides what rooms should actually be left, the handle provides a method to execute that too.
Implementations§
Source§impl LeaveSpaceHandle
impl LeaveSpaceHandle
Sourcepub fn rooms(&self) -> &Vec<LeaveSpaceRoom>
pub fn rooms(&self) -> &Vec<LeaveSpaceRoom>
A list of rooms to be left which next to normal SpaceRoom data also
include leave specific information.
Auto Trait Implementations§
impl Freeze for LeaveSpaceHandle
impl !RefUnwindSafe for LeaveSpaceHandle
impl Send for LeaveSpaceHandle
impl Sync for LeaveSpaceHandle
impl Unpin for LeaveSpaceHandle
impl !UnwindSafe for LeaveSpaceHandle
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
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<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more