#[non_exhaustive]pub enum DelegateRequest<'a> {
ApplicationMessages {
key: DelegateKey,
params: Parameters<'a>,
inbound: Vec<InboundDelegateMsg<'a>>,
},
GetSecretRequest {
key: DelegateKey,
params: Parameters<'a>,
get_request: GetSecretRequest,
},
RegisterDelegate {
delegate: DelegateContainer,
cipher: [u8; 32],
nonce: [u8; 24],
},
UnregisterDelegate(DelegateKey),
}
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Implementations§
Source§impl DelegateRequest<'_>
impl DelegateRequest<'_>
pub const DEFAULT_CIPHER: [u8; 32]
pub const DEFAULT_NONCE: [u8; 24]
pub fn into_owned(self) -> DelegateRequest<'static>
pub fn key(&self) -> &DelegateKey
Trait Implementations§
Source§impl<'a> Clone for DelegateRequest<'a>
impl<'a> Clone for DelegateRequest<'a>
Source§fn clone(&self) -> DelegateRequest<'a>
fn clone(&self) -> DelegateRequest<'a>
Returns a duplicate 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<'a> Debug for DelegateRequest<'a>
impl<'a> Debug for DelegateRequest<'a>
Source§impl<'de: 'a, 'a> Deserialize<'de> for DelegateRequest<'a>
impl<'de: 'a, 'a> Deserialize<'de> for DelegateRequest<'a>
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
Source§impl<'a> From<DelegateRequest<'a>> for ClientRequest<'a>
impl<'a> From<DelegateRequest<'a>> for ClientRequest<'a>
Source§fn from(op: DelegateRequest<'a>) -> Self
fn from(op: DelegateRequest<'a>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<'a> Freeze for DelegateRequest<'a>
impl<'a> RefUnwindSafe for DelegateRequest<'a>
impl<'a> Send for DelegateRequest<'a>
impl<'a> Sync for DelegateRequest<'a>
impl<'a> Unpin for DelegateRequest<'a>
impl<'a> UnwindSafe for DelegateRequest<'a>
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