pub enum Response<Val = Value> {
Value {
key: String,
value: Val,
},
OperationOk,
OperationFailed,
Ignored,
}Expand description
Response or notification sent to the client.
Variants§
Value
Informs the client about the value for certain key.
OperationOk
Informs the client that the operation was performed.
OperationFailed
Informs the client that the operation failed.
Ignored
Informs the client that the operation didn’t have to be performed.
This happens if the client attempts to subscribe to key he’s already subscribed to, or unsubscribe from key he isn’t subscribed to.
Auto Trait Implementations§
impl<Val> Freeze for Response<Val>where
Val: Freeze,
impl<Val> RefUnwindSafe for Response<Val>where
Val: RefUnwindSafe,
impl<Val> Send for Response<Val>where
Val: Send,
impl<Val> Sync for Response<Val>where
Val: Sync,
impl<Val> Unpin for Response<Val>where
Val: Unpin,
impl<Val> UnwindSafe for Response<Val>where
Val: 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