pub enum WireBridgePayload<T> {
Data(T),
Error(String),
Status(String),
Close {
reason: Option<String>,
},
}Expand description
WireBridgePayload variants.
Variants§
Data(T)
Data variant.
Error(String)
Error variant.
Status(String)
Status variant.
Close
Close variant.
Trait Implementations§
Source§impl<T: Clone> Clone for WireBridgePayload<T>
impl<T: Clone> Clone for WireBridgePayload<T>
Source§fn clone(&self) -> WireBridgePayload<T>
fn clone(&self) -> WireBridgePayload<T>
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<T: Debug> Debug for WireBridgePayload<T>
impl<T: Debug> Debug for WireBridgePayload<T>
Source§impl<T: PartialEq> PartialEq for WireBridgePayload<T>
impl<T: PartialEq> PartialEq for WireBridgePayload<T>
impl<T: Eq> Eq for WireBridgePayload<T>
impl<T> StructuralPartialEq for WireBridgePayload<T>
Auto Trait Implementations§
impl<T> Freeze for WireBridgePayload<T>where
T: Freeze,
impl<T> RefUnwindSafe for WireBridgePayload<T>where
T: RefUnwindSafe,
impl<T> Send for WireBridgePayload<T>where
T: Send,
impl<T> Sync for WireBridgePayload<T>where
T: Sync,
impl<T> Unpin for WireBridgePayload<T>where
T: Unpin,
impl<T> UnsafeUnpin for WireBridgePayload<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for WireBridgePayload<T>where
T: UnwindSafe,
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.