#[repr(i32)]pub enum Response {
Show 15 variants
Ok = 100,
Reach = 101,
AuthenticationChallenge = 102,
Envelope = 103,
MessageVault = 104,
SealedMessageVaultId = 105,
SealedEnvelopeId = 106,
EnvelopeIds = 107,
SharedSecretKeys = 108,
ErrorVerification = 153,
ErrorNotFound = 154,
ErrorUnsupported = 500,
ErrorWebSocket = 501,
ErrorDecode = 502,
ErrorInternal = 503,
}Variants§
Ok = 100
Reach = 101
AuthenticationChallenge = 102
Envelope = 103
MessageVault = 104
SealedMessageVaultId = 105
SealedEnvelopeId = 106
EnvelopeIds = 107
ErrorVerification = 153
ErrorNotFound = 154
ErrorUnsupported = 500
ErrorWebSocket = 501
ErrorDecode = 502
ErrorInternal = 503
Implementations§
Source§impl Response
impl Response
Sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
Sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
Source§impl Communicable<Response> for ReachOk
impl Communicable<Response> for ReachOk
fn to_communication(&self) -> Communication<Response>
fn try_from_communication( communication: &Communication<Response>, ) -> Result<Self, DecodeError>
Source§impl ErrorSubset for Response
impl ErrorSubset for Response
type Error = ErrorResponse
Source§impl From<ErrorResponse> for Response
impl From<ErrorResponse> for Response
Source§fn from(value: ErrorResponse) -> Self
fn from(value: ErrorResponse) -> Self
Converts to this type from the input type.
Source§impl From<GenericWebSocketError> for Response
impl From<GenericWebSocketError> for Response
Source§fn from(value: GenericWebSocketError) -> Self
fn from(value: GenericWebSocketError) -> Self
Converts to this type from the input type.
Source§impl Ord for Response
impl Ord for Response
Source§impl PartialOrd for Response
impl PartialOrd for Response
Source§impl ProstCommunicable<Response> for AuthenticationChallenge
impl ProstCommunicable<Response> for AuthenticationChallenge
const COMMUNICATION_VARIANT: Response = Response::AuthenticationChallenge
fn to_communication_via_prost(&self) -> Communication<T>
fn try_from_communication( communication: &Communication<T>, ) -> Result<Self, DecodeError>
Source§impl ProstCommunicable<Response> for Envelope
impl ProstCommunicable<Response> for Envelope
const COMMUNICATION_VARIANT: Response = Response::Envelope
fn to_communication_via_prost(&self) -> Communication<T>
fn try_from_communication( communication: &Communication<T>, ) -> Result<Self, DecodeError>
Source§impl ProstCommunicable<Response> for MessageVault
impl ProstCommunicable<Response> for MessageVault
const COMMUNICATION_VARIANT: Response = Response::MessageVault
fn to_communication_via_prost(&self) -> Communication<T>
fn try_from_communication( communication: &Communication<T>, ) -> Result<Self, DecodeError>
Source§impl ProstCommunicable<Response> for SealedMessageVaultId
impl ProstCommunicable<Response> for SealedMessageVaultId
const COMMUNICATION_VARIANT: Response = Response::SealedMessageVaultId
fn to_communication_via_prost(&self) -> Communication<T>
fn try_from_communication( communication: &Communication<T>, ) -> Result<Self, DecodeError>
Source§impl ProstCommunicableOwned<Response> for Reach
impl ProstCommunicableOwned<Response> for Reach
const COMMUNICATION_VARIANT: Response = Response::Reach
fn to_communication_via_prost(self) -> Communication<T>
fn try_from_communication( communication: &Communication<T>, ) -> Result<Self, DecodeError>
impl CommunicableType for Response
impl Copy for Response
impl Eq for Response
impl StructuralPartialEq for Response
Auto Trait Implementations§
impl Freeze for Response
impl RefUnwindSafe for Response
impl Send for Response
impl Sync for Response
impl Unpin for Response
impl UnwindSafe for Response
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