#[repr(i32)]pub enum Request {
Hello = 300,
Initialize = 301,
UnlockKey = 302,
EnvelopeIdHints = 303,
Envelope = 304,
MessageVault = 305,
GetReachablePublicKeys = 306,
SharedSecretKeys = 307,
GetUnsignedReachableVerifyingKeys = 308,
GenerateSigningKeys = 309,
AllReachableVerifyingKeys = 310,
}Variants§
Hello = 300
Initialize = 301
UnlockKey = 302
EnvelopeIdHints = 303
Envelope = 304
MessageVault = 305
GetReachablePublicKeys = 306
GetUnsignedReachableVerifyingKeys = 308
GenerateSigningKeys = 309
AllReachableVerifyingKeys = 310
Implementations§
Source§impl Request
impl Request
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<Request> for GenerateSigningKeys
impl Communicable<Request> for GenerateSigningKeys
fn to_communication(&self) -> Communication<Request>
fn try_from_communication( communication: &Communication<Request>, ) -> Result<Self, DecodeError>
Source§impl Communicable<Request> for GetUnsignedReachableVerifyingKeys
impl Communicable<Request> for GetUnsignedReachableVerifyingKeys
fn to_communication(&self) -> Communication<Request>
fn try_from_communication( communication: &Communication<Request>, ) -> Result<Self, DecodeError>
Source§impl Communicable<Request> for Hello
impl Communicable<Request> for Hello
fn to_communication(&self) -> Communication<Request>
fn try_from_communication( communication: &Communication<Request>, ) -> Result<Self, DecodeError>
Source§impl CommunicableOwned<Request> for EnvelopeIdHints
impl CommunicableOwned<Request> for EnvelopeIdHints
fn to_communication(self) -> Communication<Request>
fn try_from_communication( communication: &Communication<Request>, ) -> Result<Self, DecodeError>
Source§impl MatchResponse<Request> for Initialize
impl MatchResponse<Request> for Initialize
type Resp = Initialized
Source§impl Ord for Request
impl Ord for Request
Source§impl PartialOrd for Request
impl PartialOrd for Request
Source§impl ProstCommunicable<Request> for AllReachableVerifyingKeys
impl ProstCommunicable<Request> for AllReachableVerifyingKeys
const COMMUNICATION_VARIANT: Request = Request::AllReachableVerifyingKeys
fn to_communication_via_prost(&self) -> Communication<T>
fn try_from_communication( communication: &Communication<T>, ) -> Result<Self, DecodeError>
Source§impl ProstCommunicable<Request> for Envelope
impl ProstCommunicable<Request> for Envelope
const COMMUNICATION_VARIANT: Request = Request::Envelope
fn to_communication_via_prost(&self) -> Communication<T>
fn try_from_communication( communication: &Communication<T>, ) -> Result<Self, DecodeError>
Source§impl ProstCommunicable<Request> for GetReachablePublicKeys
impl ProstCommunicable<Request> for GetReachablePublicKeys
const COMMUNICATION_VARIANT: Request = Request::GetReachablePublicKeys
fn to_communication_via_prost(&self) -> Communication<T>
fn try_from_communication( communication: &Communication<T>, ) -> Result<Self, DecodeError>
Source§impl ProstCommunicable<Request> for Initialize
impl ProstCommunicable<Request> for Initialize
const COMMUNICATION_VARIANT: Request = Request::Initialize
fn to_communication_via_prost(&self) -> Communication<T>
fn try_from_communication( communication: &Communication<T>, ) -> Result<Self, DecodeError>
Source§impl ProstCommunicable<Request> for MessageVault
impl ProstCommunicable<Request> for MessageVault
const COMMUNICATION_VARIANT: Request = Request::MessageVault
fn to_communication_via_prost(&self) -> Communication<T>
fn try_from_communication( communication: &Communication<T>, ) -> Result<Self, DecodeError>
const COMMUNICATION_VARIANT: Request = Request::SharedSecretKeys
fn to_communication_via_prost(&self) -> Communication<T>
fn try_from_communication( communication: &Communication<T>, ) -> Result<Self, DecodeError>
Source§impl ProstCommunicable<Request> for UnlockKey
impl ProstCommunicable<Request> for UnlockKey
const COMMUNICATION_VARIANT: Request = Request::UnlockKey
fn to_communication_via_prost(&self) -> Communication<T>
fn try_from_communication( communication: &Communication<T>, ) -> Result<Self, DecodeError>
impl CommunicableType for Request
impl Copy for Request
impl Eq for Request
impl StructuralPartialEq for Request
Auto Trait Implementations§
impl Freeze for Request
impl RefUnwindSafe for Request
impl Send for Request
impl Sync for Request
impl Unpin for Request
impl UnwindSafe for Request
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