#[non_exhaustive]pub enum AbiBridgeResult {
Canonical(CanonicalDescriptorBridge),
Unsupported(UnsupportedDescriptor),
}Expand description
One bridge outcome.
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.
Canonical(CanonicalDescriptorBridge)
The source payload was represented without guessing.
Unsupported(UnsupportedDescriptor)
The payload is valid legacy input, but canonical conversion would lose or invent behavior-affecting information.
Implementations§
Source§impl AbiBridgeResult
impl AbiBridgeResult
Sourcepub fn canonical(&self) -> Option<&CanonicalDescriptorBridge>
pub fn canonical(&self) -> Option<&CanonicalDescriptorBridge>
Borrow the canonical result, if this descriptor is fully compatible.
Trait Implementations§
Source§impl Clone for AbiBridgeResult
impl Clone for AbiBridgeResult
Source§fn clone(&self) -> AbiBridgeResult
fn clone(&self) -> AbiBridgeResult
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 AbiBridgeResult
impl Debug for AbiBridgeResult
impl Eq for AbiBridgeResult
Source§impl PartialEq for AbiBridgeResult
impl PartialEq for AbiBridgeResult
impl StructuralPartialEq for AbiBridgeResult
Auto Trait Implementations§
impl Forget for AbiBridgeResult
impl Freeze for AbiBridgeResult
impl Move for AbiBridgeResult
impl RefUnwindSafe for AbiBridgeResult
impl Send for AbiBridgeResult
impl Sync for AbiBridgeResult
impl Unpin for AbiBridgeResult
impl UnsafeUnpin for AbiBridgeResult
impl UnwindSafe for AbiBridgeResult
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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