pub struct ChatAppSignals {
pub tab_lock_acquired: Signal<bool>,
pub room_name: Signal<Option<String>>,
pub messages: Signal<Vec<ChatMessage>>,
pub nickname: Signal<String>,
pub is_online: Signal<bool>,
pub stats: Signal<Option<Box<ConnectionStats>>>,
pub system_messages: Signal<Vec<String>>,
pub error_messages: Signal<Vec<String>>,
pub show_stats: Signal<bool>,
pub sidebar_open: Signal<bool>,
pub sidebar_collapsed: Signal<bool>,
pub coordinator_handle: Signal<Option<ChatCoordinatorHandle>>,
}Expand description
All common application signals used by both web and desktop apps.
Fields§
§tab_lock_acquired: Signal<bool>§room_name: Signal<Option<String>>§messages: Signal<Vec<ChatMessage>>§nickname: Signal<String>§is_online: Signal<bool>§stats: Signal<Option<Box<ConnectionStats>>>§system_messages: Signal<Vec<String>>§error_messages: Signal<Vec<String>>§show_stats: Signal<bool>§coordinator_handle: Signal<Option<ChatCoordinatorHandle>>Trait Implementations§
Source§impl Clone for ChatAppSignals
impl Clone for ChatAppSignals
Source§fn clone(&self) -> ChatAppSignals
fn clone(&self) -> ChatAppSignals
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl PartialEq for ChatAppSignals
impl PartialEq for ChatAppSignals
impl Copy for ChatAppSignals
impl StructuralPartialEq for ChatAppSignals
Auto Trait Implementations§
impl Freeze for ChatAppSignals
impl !RefUnwindSafe for ChatAppSignals
impl !Send for ChatAppSignals
impl !Sync for ChatAppSignals
impl Unpin for ChatAppSignals
impl !UnwindSafe for ChatAppSignals
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,
§impl<T> InitializeFromFunction<T> for T
impl<T> InitializeFromFunction<T> for T
§fn initialize_from_function(f: fn() -> T) -> T
fn initialize_from_function(f: fn() -> T) -> T
Create an instance of this type from an initialization function
§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§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T, O> SuperFrom<T> for Owhere
O: From<T>,
impl<T, O> SuperFrom<T> for Owhere
O: From<T>,
§fn super_from(input: T) -> O
fn super_from(input: T) -> O
Convert from a type to another type.
§impl<T, O, M> SuperInto<O, M> for Twhere
O: SuperFrom<T, M>,
impl<T, O, M> SuperInto<O, M> for Twhere
O: SuperFrom<T, M>,
§fn super_into(self) -> O
fn super_into(self) -> O
Convert from a type to another type.