#[repr(u16)]pub enum FrankenExtension {
ApplicationId(FrankenApplicationIdExtension),
RatchetTree(FrankenRatchetTreeExtension),
RequiredCapabilities(FrankenRequiredCapabilitiesExtension),
ExternalPub(FrankenExternalPubExtension),
ExternalSenders(FrankenExternalSendersExtension),
LastResort,
Unknown(u16, VLBytes),
}Available on (32-bit or 64-bit) and (crate features
test-utils) only.Variants§
ApplicationId(FrankenApplicationIdExtension)
RatchetTree(FrankenRatchetTreeExtension)
RequiredCapabilities(FrankenRequiredCapabilitiesExtension)
ExternalPub(FrankenExternalPubExtension)
ExternalSenders(FrankenExternalSendersExtension)
LastResort
Unknown(u16, VLBytes)
Implementations§
Source§impl FrankenExtension
impl FrankenExtension
pub const fn extension_type(&self) -> FrankenExtensionType
Trait Implementations§
Source§impl Clone for FrankenExtension
impl Clone for FrankenExtension
Source§fn clone(&self) -> FrankenExtension
fn clone(&self) -> FrankenExtension
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 Debug for FrankenExtension
impl Debug for FrankenExtension
Source§impl Deserialize for FrankenExtension
impl Deserialize for FrankenExtension
Source§fn tls_deserialize<R: Read>(bytes: &mut R) -> Result<Self, Error>
fn tls_deserialize<R: Read>(bytes: &mut R) -> Result<Self, Error>
Available on crate feature
std only.This function deserializes the
bytes from the provided a std::io::Read
and returns the populated struct. Read moreSource§impl DeserializeBytes for FrankenExtension
impl DeserializeBytes for FrankenExtension
Source§impl From<Extension> for FrankenExtension
impl From<Extension> for FrankenExtension
Source§impl PartialEq for FrankenExtension
impl PartialEq for FrankenExtension
Source§impl Serialize for FrankenExtension
impl Serialize for FrankenExtension
Source§impl Size for FrankenExtension
impl Size for FrankenExtension
fn tls_serialized_len(&self) -> usize
impl Eq for FrankenExtension
impl StructuralPartialEq for FrankenExtension
Auto Trait Implementations§
impl Freeze for FrankenExtension
impl RefUnwindSafe for FrankenExtension
impl Send for FrankenExtension
impl Sync for FrankenExtension
impl Unpin for FrankenExtension
impl UnwindSafe for FrankenExtension
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
§impl<T> Classify for T
impl<T> Classify for T
type Classified = T
fn classify(self) -> T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Declassify for T
impl<T> Declassify for T
type Declassified = T
fn declassify(self) -> T
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