pub struct DiscoveredRoom {
pub room_id: String,
pub name: String,
pub encrypted: bool,
pub member_count: u32,
pub creator_fingerprint: String,
pub last_seen: i64,
pub restorable: bool,
pub host_addrs: Vec<String>,
pub kind: RoomKind,
}Fields§
§room_id: String§name: String§encrypted: bool§member_count: u32§creator_fingerprint: String§last_seen: i64§restorable: boolTrue for rooms loaded from local storage that we haven’t rejoined yet this session (encrypted rooms whose passphrase key isn’t in memory). The lobby renders these with a “saved” hint; pressing Enter goes through the join flow with passphrase prompt.
host_addrs: Vec<String>huddle 0.5.1: cached host multiaddrs from the announcing peer’s
RoomAnnouncement.host_addrs. Used by dial_by_id_or_username
to resolve an HD- ID or username back to a dialable address
when the target is on our gossipsub mesh.
kind: RoomKindhuddle 0.7: routing hint for the sidebar — Direct lands in the
“Direct messages” section, Group in “Group rooms”. The
discovered_rooms() accessor filters out Direct entries whose
two members don’t include us, so a DM never leaks into a third
party’s sidebar.
Trait Implementations§
Source§impl Clone for DiscoveredRoom
impl Clone for DiscoveredRoom
Source§fn clone(&self) -> DiscoveredRoom
fn clone(&self) -> DiscoveredRoom
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for DiscoveredRoom
impl RefUnwindSafe for DiscoveredRoom
impl Send for DiscoveredRoom
impl Sync for DiscoveredRoom
impl Unpin for DiscoveredRoom
impl UnsafeUnpin for DiscoveredRoom
impl UnwindSafe for DiscoveredRoom
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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