Enum saltyrtc_client::tasks::TaskMessage
source · [−]Expand description
A task may either send an arbitrary value, an Application
message or a Close
message.
Variants
Value(HashMap<String, Value>)
Arbitrary maps can be sent over the encrypted channel,
as long as they contain a type
key.
Application(Value)
Application messages allow user applications to send simple control messages or early data without having to modify an existing task.
Close(CloseCode)
Close messages should be triggered by the task, when the user application requests to disconnect, or by the signaling, when the peer sends a ‘close’ message.
Trait Implementations
sourceimpl Clone for TaskMessage
impl Clone for TaskMessage
sourcefn clone(&self) -> TaskMessage
fn clone(&self) -> TaskMessage
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for TaskMessage
impl Debug for TaskMessage
sourceimpl PartialEq<TaskMessage> for TaskMessage
impl PartialEq<TaskMessage> for TaskMessage
sourcefn eq(&self, other: &TaskMessage) -> bool
fn eq(&self, other: &TaskMessage) -> bool
impl StructuralPartialEq for TaskMessage
Auto Trait Implementations
impl RefUnwindSafe for TaskMessage
impl Send for TaskMessage
impl Sync for TaskMessage
impl Unpin for TaskMessage
impl UnwindSafe for TaskMessage
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