Struct penguin::Controller
source · pub struct Controller(/* private fields */);
Expand description
A handle to send commands to the server.
Implementations§
source§impl Controller
impl Controller
sourcepub fn show_message(&self, msg: impl Into<String>)
pub fn show_message(&self, msg: impl Into<String>)
Shows a message as overlay in all active browser sessions. The given
string will be copied into the innerHTML
of a <div>
verbatim.
This call will overwrite/hide all previous messages.
Trait Implementations§
source§impl Clone for Controller
impl Clone for Controller
source§fn clone(&self) -> Controller
fn clone(&self) -> Controller
Returns a copy 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 moreAuto Trait Implementations§
impl !RefUnwindSafe for Controller
impl Send for Controller
impl Sync for Controller
impl Unpin for Controller
impl !UnwindSafe for Controller
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