pub struct Message {
pub id: i64,
pub event_type: PushEventType,
}
Expand description
Struct encompasses a message we are trying to relay to a client from somehwere within dim. It holds an id and a event_type field.
Fields
id: i64
Field id, can hold anything and the client usually discriminates its meaning based on the event_type. For example within dim, sometimes it can be the library_id or media_id or sometimes its just -1 meaning ignore
event_type: PushEventType
Field holds the event type that gets relayed to the clients.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Message
impl Send for Message
impl Sync for Message
impl Unpin for Message
impl UnwindSafe for Message
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more