pub struct UnsubscribeContractResponse {
pub contract_id: ContractInstanceId,
pub result: Result<(), String>,
pub context: DelegateContext,
}Expand description
Response after attempting to unsubscribe from a contract from a delegate.
Unsubscribing a contract the delegate is not subscribed to reports
Ok(()), not an error. That is not a convenience: it is what the host
actually does. Teardown goes through the same removal path that a
no-longer-present client id already takes as a no-op, so returning an error
would have the host inventing a failure it did not have. It also matches the
subscribe side, where a repeat subscribe is a set insert.
Field order is the wire format. Do not reorder.
Fields§
§contract_id: ContractInstanceIdThe contract unsubscribed from.
result: Result<(), String>Success (Ok) or error message (Err). Unsubscribing a contract the
delegate was not subscribed to reports Ok(()).
context: DelegateContextContext for the delegate.
Trait Implementations§
Source§impl Clone for UnsubscribeContractResponse
impl Clone for UnsubscribeContractResponse
Source§fn clone(&self) -> UnsubscribeContractResponse
fn clone(&self) -> UnsubscribeContractResponse
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 UnsubscribeContractResponse
impl Debug for UnsubscribeContractResponse
Source§impl<'de> Deserialize<'de> for UnsubscribeContractResponse
impl<'de> Deserialize<'de> for UnsubscribeContractResponse
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 UnsubscribeContractResponse
impl RefUnwindSafe for UnsubscribeContractResponse
impl Send for UnsubscribeContractResponse
impl Sync for UnsubscribeContractResponse
impl Unpin for UnsubscribeContractResponse
impl UnsafeUnpin for UnsubscribeContractResponse
impl UnwindSafe for UnsubscribeContractResponse
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