Enum everscale_crypto::tl::PublicKeyOwned
source · [−]pub enum PublicKeyOwned {
Ed25519 {
key: [u8; 32],
},
Overlay {
name: Vec<u8>,
},
Aes {
key: [u8; 32],
},
Unencoded {
data: Vec<u8>,
},
}Expand description
Public key which is used in protocol. Owned version
Variants
Ed25519
Overlay
Aes
Unencoded
Implementations
sourceimpl PublicKeyOwned
impl PublicKeyOwned
pub fn as_equivalent_ref(&self) -> PublicKey<'_>
Trait Implementations
sourceimpl Clone for PublicKeyOwned
impl Clone for PublicKeyOwned
sourcefn clone(&self) -> PublicKeyOwned
fn clone(&self) -> PublicKeyOwned
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for PublicKeyOwned
impl Debug for PublicKeyOwned
sourceimpl<'tl> TlRead<'tl> for PublicKeyOwned
impl<'tl> TlRead<'tl> for PublicKeyOwned
sourceimpl TlWrite for PublicKeyOwned
impl TlWrite for PublicKeyOwned
const TL_WRITE_BOXED: bool = true
sourcefn max_size_hint(&self) -> usize
fn max_size_hint(&self) -> usize
Max required number of bytes
fn write_to<P_>(&self, __packet: &mut P_) where
P_: TlPacket,
Auto Trait Implementations
impl RefUnwindSafe for PublicKeyOwned
impl Send for PublicKeyOwned
impl Sync for PublicKeyOwned
impl Unpin for PublicKeyOwned
impl UnwindSafe for PublicKeyOwned
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more