pub struct RoomEntry {
pub id: RoomId,
pub member: bool,
}Expand description
One room in the mailbox’s directory: its id, and whether the caller
who asked for the directory currently belongs to it. member is
relative to that one caller – two different callers reading the
directory at the same moment see the same RoomEntry::id with
whatever RoomEntry::member value is true for each of them.
Fields§
§id: RoomId§member: boolImplementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for RoomEntry
impl<'de> Deserialize<'de> for RoomEntry
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for RoomEntry
impl StructuralPartialEq for RoomEntry
Auto Trait Implementations§
impl Freeze for RoomEntry
impl RefUnwindSafe for RoomEntry
impl Send for RoomEntry
impl Sync for RoomEntry
impl Unpin for RoomEntry
impl UnsafeUnpin for RoomEntry
impl UnwindSafe for RoomEntry
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