pub enum ZomeCallResponse {
Ok(ExternIO),
AuthenticationFailed(Signature, HoloHash<Agent>),
Unauthorized(ZomeCallAuthorization, Option<CapSecret>, ZomeName, FunctionName),
NetworkError(String),
CountersigningSession(String),
}
Expand description
Response to a zome call.
Variants§
Ok(ExternIO)
Arbitrary response from zome fns to the outside world. Something like a 200 http response.
AuthenticationFailed(Signature, HoloHash<Agent>)
Authentication failure - signature could not be verified by the provenance.
Cap grant failure. Something like a 401 http response.
NetworkError(String)
This was a zome call made remotely but something has failed on the network
CountersigningSession(String)
A countersigning session has failed to start.
Trait Implementations§
Source§impl Clone for ZomeCallResponse
impl Clone for ZomeCallResponse
Source§fn clone(&self) -> ZomeCallResponse
fn clone(&self) -> ZomeCallResponse
Returns a copy 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 Debug for ZomeCallResponse
impl Debug for ZomeCallResponse
Source§impl<'de> Deserialize<'de> for ZomeCallResponse
impl<'de> Deserialize<'de> for ZomeCallResponse
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ZomeCallResponse, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ZomeCallResponse, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for ZomeCallResponse
impl Display for ZomeCallResponse
Source§impl PartialEq for ZomeCallResponse
impl PartialEq for ZomeCallResponse
Source§impl Serialize for ZomeCallResponse
impl Serialize for ZomeCallResponse
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Source§impl TryFrom<&ZomeCallResponse> for SerializedBytes
impl TryFrom<&ZomeCallResponse> for SerializedBytes
Source§type Error = SerializedBytesError
type Error = SerializedBytesError
The type returned in the event of a conversion error.
Source§fn try_from(
t: &ZomeCallResponse,
) -> Result<SerializedBytes, SerializedBytesError>
fn try_from( t: &ZomeCallResponse, ) -> Result<SerializedBytes, SerializedBytesError>
Performs the conversion.
Source§impl TryFrom<SerializedBytes> for ZomeCallResponse
impl TryFrom<SerializedBytes> for ZomeCallResponse
Source§type Error = SerializedBytesError
type Error = SerializedBytesError
The type returned in the event of a conversion error.
Source§fn try_from(
sb: SerializedBytes,
) -> Result<ZomeCallResponse, SerializedBytesError>
fn try_from( sb: SerializedBytes, ) -> Result<ZomeCallResponse, SerializedBytesError>
Performs the conversion.
Source§impl TryFrom<ZomeCallResponse> for SerializedBytes
impl TryFrom<ZomeCallResponse> for SerializedBytes
Source§type Error = SerializedBytesError
type Error = SerializedBytesError
The type returned in the event of a conversion error.
Source§fn try_from(
t: ZomeCallResponse,
) -> Result<SerializedBytes, SerializedBytesError>
fn try_from( t: ZomeCallResponse, ) -> Result<SerializedBytes, SerializedBytesError>
Performs the conversion.
impl StructuralPartialEq for ZomeCallResponse
Auto Trait Implementations§
impl Freeze for ZomeCallResponse
impl RefUnwindSafe for ZomeCallResponse
impl Send for ZomeCallResponse
impl Sync for ZomeCallResponse
impl Unpin for ZomeCallResponse
impl UnwindSafe for ZomeCallResponse
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