pub struct CoordinatorState {Show 14 fields
pub room_name: Option<String>,
pub room_topic: Option<String>,
pub room_id: Option<RoomId>,
pub nickname: String,
pub stable_sender_id: String,
pub seq: i64,
pub connected_peers: HashSet<PeerId>,
pub seen_peers: HashSet<PeerId>,
pub is_online: bool,
pub local_peer_id: PeerId,
pub sync: SyncScheduler,
pub room_peers: HashSet<PeerId>,
pub messages: Vec<ChatMessage>,
pub seen_message_ids: HashSet<String>,
}Fields§
§room_name: Option<String>§room_topic: Option<String>§room_id: Option<RoomId>§nickname: String§stable_sender_id: String§seq: i64§connected_peers: HashSet<PeerId>§seen_peers: HashSet<PeerId>§is_online: bool§local_peer_id: PeerId§sync: SyncScheduler§room_peers: HashSet<PeerId>§messages: Vec<ChatMessage>§seen_message_ids: HashSet<String>Auto Trait Implementations§
impl Freeze for CoordinatorState
impl RefUnwindSafe for CoordinatorState
impl Send for CoordinatorState
impl Sync for CoordinatorState
impl Unpin for CoordinatorState
impl UnwindSafe for CoordinatorState
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> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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