pub enum PublicKeyRef<'a> {
Single(&'a PublicKey),
MN(&'a MNPublicKey),
}
Variants§
Single(&'a PublicKey)
MN(&'a MNPublicKey)
Trait Implementations§
Source§impl<'a> From<&'a (u8, Vec<PublicKey>)> for PublicKeyRef<'a>
impl<'a> From<&'a (u8, Vec<PublicKey>)> for PublicKeyRef<'a>
Source§fn from(key: &'a MNPublicKey) -> Self
fn from(key: &'a MNPublicKey) -> Self
Converts to this type from the input type.
Source§impl<'a> From<&'a PublicKey> for PublicKeyRef<'a>
impl<'a> From<&'a PublicKey> for PublicKeyRef<'a>
Source§impl<'a> ObjectFormat for PublicKeyRef<'a>
impl<'a> ObjectFormat for PublicKeyRef<'a>
fn format_json(&self) -> Value
Source§impl<'r> RawEncode for PublicKeyRef<'r>
impl<'r> RawEncode for PublicKeyRef<'r>
fn raw_measure( &self, purpose: &Option<RawEncodePurpose>, ) -> Result<usize, BuckyError>
fn raw_encode<'a>( &self, buf: &'a mut [u8], purpose: &Option<RawEncodePurpose>, ) -> Result<&'a mut [u8], BuckyError>
fn raw_tail_encode<'a>( &self, buf: &'a mut [u8], purpose: &Option<RawEncodePurpose>, ) -> BuckyResult<&'a [u8]>
fn raw_encode_to_buffer(&self) -> BuckyResult<Vec<u8>>
fn raw_hash_value(&self) -> BuckyResult<HashValue>
fn hash_buf(&self, encoded_buf: &[u8]) -> HashValue
fn raw_hash_encode(&self) -> BuckyResult<Vec<u8>>
Auto Trait Implementations§
impl<'a> Freeze for PublicKeyRef<'a>
impl<'a> RefUnwindSafe for PublicKeyRef<'a>
impl<'a> Send for PublicKeyRef<'a>
impl<'a> Sync for PublicKeyRef<'a>
impl<'a> Unpin for PublicKeyRef<'a>
impl<'a> UnwindSafe for PublicKeyRef<'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
Source§impl<D> FileEncoder<D> for Dwhere
D: RawEncode,
impl<D> FileEncoder<D> for Dwhere
D: RawEncode,
fn suggest_buffer_size(&self) -> Result<usize, BuckyError>
fn encode<'a>( &self, buf: &'a mut [u8], _is_compress: bool, ) -> Result<&'a mut [u8], BuckyError>
fn encode_to_writer( &self, writer: impl Write, is_compress: bool, ) -> BuckyResult<usize>
fn encode_to_file(&self, file: &Path, is_compress: bool) -> BuckyResult<usize>
fn encode_to_vec(&self, is_compress: bool) -> BuckyResult<Vec<u8>>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more