pub enum ChatDelegateResponseMsg {
GetResponse {
key: ChatDelegateKey,
value: Option<Vec<u8>>,
},
ListResponse {
keys: Vec<ChatDelegateKey>,
},
StoreResponse {
key: ChatDelegateKey,
value_size: usize,
result: Result<(), String>,
},
DeleteResponse {
key: ChatDelegateKey,
result: Result<(), String>,
},
StoreSigningKeyResponse {
room_key: RoomKey,
result: Result<(), String>,
},
GetPublicKeyResponse {
room_key: RoomKey,
public_key: Option<[u8; 32]>,
},
SignResponse {
room_key: RoomKey,
request_id: RequestId,
signature: Result<Vec<u8>, String>,
},
EnsureRoomSubscriptionResponse {
room_owner_vk: RoomKey,
request_id: RequestId,
result: Result<(), String>,
},
}Expand description
Responses sent from the Chat Delegate to the App
Variants§
GetResponse
ListResponse
Fields
§
keys: Vec<ChatDelegateKey>StoreResponse
DeleteResponse
StoreSigningKeyResponse
Response to StoreSigningKey
GetPublicKeyResponse
Response to GetPublicKey
SignResponse
Response to any signing operation
Fields
EnsureRoomSubscriptionResponse
Response to ChatDelegateRequestMsg::EnsureRoomSubscription.
Ok(()) means the delegate emitted a SubscribeContractRequest to the
runtime; the actual subscription confirmation flows back to the
delegate as InboundDelegateMsg::SubscribeContractResponse and is not
surfaced to the UI.
request_id is echoed back from the request so the UI can route the
response to the specific awaiting future (see the doc-comment on the
request variant for why a per-request correlator is required).
Trait Implementations§
Source§impl Clone for ChatDelegateResponseMsg
impl Clone for ChatDelegateResponseMsg
Source§fn clone(&self) -> ChatDelegateResponseMsg
fn clone(&self) -> ChatDelegateResponseMsg
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ChatDelegateResponseMsg
impl Debug for ChatDelegateResponseMsg
Source§impl<'de> Deserialize<'de> for ChatDelegateResponseMsg
impl<'de> Deserialize<'de> for ChatDelegateResponseMsg
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ChatDelegateResponseMsg
impl RefUnwindSafe for ChatDelegateResponseMsg
impl Send for ChatDelegateResponseMsg
impl Sync for ChatDelegateResponseMsg
impl Unpin for ChatDelegateResponseMsg
impl UnsafeUnpin for ChatDelegateResponseMsg
impl UnwindSafe for ChatDelegateResponseMsg
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