pub struct Hello {
pub name: String,
pub color: RgbColor,
}Expand description
Introductory payload a client sends before any ops. Name is echoed back to
peers; color is a transport-level hint and may be replaced by the server’s
configured ColorSelectionMode.
Fields§
§name: String§color: RgbColorTrait Implementations§
Auto Trait Implementations§
impl Freeze for Hello
impl RefUnwindSafe for Hello
impl Send for Hello
impl Sync for Hello
impl Unpin for Hello
impl UnsafeUnpin for Hello
impl UnwindSafe for Hello
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