pub enum SignalError {
InvalidTarget,
InvalidSignal,
// some variants omitted
}
Variants§
Implementations§
Source§impl SignalError
impl SignalError
pub fn from_primitive(prim: u32) -> Option<SignalError>
pub fn from_primitive_allow_unknown(prim: u32) -> SignalError
pub fn unknown() -> SignalError
pub const fn into_primitive(self) -> u32
pub fn is_unknown(&self) -> bool
Trait Implementations§
Source§impl Clone for SignalError
impl Clone for SignalError
Source§fn clone(&self) -> SignalError
fn clone(&self) -> SignalError
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 SignalError
impl Debug for SignalError
Source§impl<D> Decode<SignalError, D> for SignalErrorwhere
D: ResourceDialect,
impl<D> Decode<SignalError, D> for SignalErrorwhere
D: ResourceDialect,
Source§fn new_empty() -> SignalError
fn new_empty() -> SignalError
Creates a valid instance of
Self
. The specific value does not matter,
since it will be overwritten by decode
.Source§impl<D> Encode<SignalError, D> for SignalErrorwhere
D: ResourceDialect,
impl<D> Encode<SignalError, D> for SignalErrorwhere
D: ResourceDialect,
Source§impl Hash for SignalError
impl Hash for SignalError
Source§impl Ord for SignalError
impl Ord for SignalError
Source§fn cmp(&self, other: &SignalError) -> Ordering
fn cmp(&self, other: &SignalError) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for SignalError
impl PartialEq for SignalError
Source§impl PartialOrd for SignalError
impl PartialOrd for SignalError
Source§impl TypeMarker for SignalError
impl TypeMarker for SignalError
Source§type Owned = SignalError
type Owned = SignalError
The owned Rust type which this FIDL type decodes into.
Source§fn inline_align(_context: Context) -> usize
fn inline_align(_context: Context) -> usize
Returns the minimum required alignment of the inline portion of the
encoded object. It must be a (nonzero) power of two.
Source§fn inline_size(_context: Context) -> usize
fn inline_size(_context: Context) -> usize
Returns the size of the inline portion of the encoded object, including
padding for alignment. Must be a multiple of
inline_align
.Source§fn encode_is_copy() -> bool
fn encode_is_copy() -> bool
Returns true if the memory layout of
Self::Owned
matches the FIDL wire
format and encoding requires no validation. When true, we can optimize
encoding arrays and vectors of Self::Owned
to a single memcpy. Read moreSource§fn decode_is_copy() -> bool
fn decode_is_copy() -> bool
Returns true if the memory layout of
Self::Owned
matches the FIDL wire
format and decoding requires no validation. When true, we can optimize
decoding arrays and vectors of Self::Owned
to a single memcpy.Source§impl ValueTypeMarker for SignalError
impl ValueTypeMarker for SignalError
Source§type Borrowed<'a> = SignalError
type Borrowed<'a> = SignalError
The Rust type to use for encoding. This is a particular
Encode<Self>
type cheaply obtainable from &Self::Owned
. There are three cases: Read moreSource§fn borrow(
value: &<SignalError as TypeMarker>::Owned,
) -> <SignalError as ValueTypeMarker>::Borrowed<'_>
fn borrow( value: &<SignalError as TypeMarker>::Owned, ) -> <SignalError as ValueTypeMarker>::Borrowed<'_>
Cheaply converts from
&Self::Owned
to Self::Borrowed
.impl Copy for SignalError
impl Eq for SignalError
impl StructuralPartialEq for SignalError
Auto Trait Implementations§
impl Freeze for SignalError
impl RefUnwindSafe for SignalError
impl Send for SignalError
impl Sync for SignalError
impl Unpin for SignalError
impl UnwindSafe for SignalError
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