#[repr(i32)]pub enum Response {
Show 14 variants
Ok = 400,
Initialized = 401,
HintedEnvelopeIds = 402,
MessageVaultId = 403,
Message = 404,
ReachablePublicKeyRing = 405,
UnsignedReachableVerifyingKeys = 406,
ErrorUninitialized = 407,
ErrorLocked = 408,
ErrorMissingVerifyingKeys = 409,
ErrorUnsupported = 500,
ErrorWebSocket = 501,
ErrorDecode = 502,
ErrorInternal = 503,
}Variants§
Ok = 400
Initialized = 401
HintedEnvelopeIds = 402
MessageVaultId = 403
Message = 404
ReachablePublicKeyRing = 405
UnsignedReachableVerifyingKeys = 406
ErrorUninitialized = 407
ErrorLocked = 408
ErrorMissingVerifyingKeys = 409
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 SecretsOk
impl Communicable<Response> for SecretsOk
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 HintedEnvelopeIds
impl ProstCommunicable<Response> for HintedEnvelopeIds
const COMMUNICATION_VARIANT: Response = Response::HintedEnvelopeIds
fn to_communication_via_prost(&self) -> Communication<T>
fn try_from_communication( communication: &Communication<T>, ) -> Result<Self, DecodeError>
Source§impl ProstCommunicable<Response> for Initialized
impl ProstCommunicable<Response> for Initialized
const COMMUNICATION_VARIANT: Response = Response::Initialized
fn to_communication_via_prost(&self) -> Communication<T>
fn try_from_communication( communication: &Communication<T>, ) -> Result<Self, DecodeError>
Source§impl ProstCommunicable<Response> for MessageVaultId
impl ProstCommunicable<Response> for MessageVaultId
const COMMUNICATION_VARIANT: Response = Response::MessageVaultId
fn to_communication_via_prost(&self) -> Communication<T>
fn try_from_communication( communication: &Communication<T>, ) -> Result<Self, DecodeError>
Source§impl ProstCommunicable<Response> for ReachablePublicKeyRing
impl ProstCommunicable<Response> for ReachablePublicKeyRing
const COMMUNICATION_VARIANT: SecretsResponse = SecretsResponse::ReachablePublicKeyRing
fn to_communication_via_prost(&self) -> Communication<T>
fn try_from_communication( communication: &Communication<T>, ) -> Result<Self, DecodeError>
Source§impl ProstCommunicable<Response> for UnsignedReachableVerifyingKeys
impl ProstCommunicable<Response> for UnsignedReachableVerifyingKeys
const COMMUNICATION_VARIANT: Response = Response::UnsignedReachableVerifyingKeys
fn to_communication_via_prost(&self) -> Communication<T>
fn try_from_communication( communication: &Communication<T>, ) -> Result<Self, DecodeError>
Source§impl ProstCommunicableOwned<Response> for Message
impl ProstCommunicableOwned<Response> for Message
const COMMUNICATION_VARIANT: Response = Response::Message
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