pub enum StartErrorCode {
NotInitialized,
AlreadyStarted,
Stopping,
Terminating,
// some variants omitted
}
Expand description
Error codes from Start operations.
Variants§
NotInitialized
Tracing hasn’t been initialized, not ready to start.
AlreadyStarted
Tracing has already been started.
Stopping
Tracing is currently being stopped.
Terminating
Tracing is currently being terminated.
Implementations§
source§impl StartErrorCode
impl StartErrorCode
pub fn from_primitive(prim: u32) -> Option<Self>
pub fn from_primitive_allow_unknown(prim: u32) -> Self
pub fn unknown() -> Self
pub const fn into_primitive(self) -> u32
pub fn is_unknown(&self) -> bool
Trait Implementations§
source§impl Clone for StartErrorCode
impl Clone for StartErrorCode
source§fn clone(&self) -> StartErrorCode
fn clone(&self) -> StartErrorCode
Returns a copy 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 StartErrorCode
impl Debug for StartErrorCode
source§impl Decode<StartErrorCode> for StartErrorCode
impl Decode<StartErrorCode> for StartErrorCode
source§impl Encode<StartErrorCode> for StartErrorCode
impl Encode<StartErrorCode> for StartErrorCode
source§impl Hash for StartErrorCode
impl Hash for StartErrorCode
source§impl Ord for StartErrorCode
impl Ord for StartErrorCode
source§fn cmp(&self, other: &StartErrorCode) -> Ordering
fn cmp(&self, other: &StartErrorCode) -> 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 StartErrorCode
impl PartialEq for StartErrorCode
source§fn eq(&self, other: &StartErrorCode) -> bool
fn eq(&self, other: &StartErrorCode) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for StartErrorCode
impl PartialOrd for StartErrorCode
source§fn partial_cmp(&self, other: &StartErrorCode) -> Option<Ordering>
fn partial_cmp(&self, other: &StartErrorCode) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl TypeMarker for StartErrorCode
impl TypeMarker for StartErrorCode
§type Owned = StartErrorCode
type Owned = StartErrorCode
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 StartErrorCode
impl ValueTypeMarker for StartErrorCode
§type Borrowed<'a> = StartErrorCode
type Borrowed<'a> = StartErrorCode
The Rust type to use for encoding. This is a particular
Encode<Self>
type cheaply obtainable from &Self::Owned
. There are three cases: Read moreimpl Copy for StartErrorCode
impl Eq for StartErrorCode
impl StructuralPartialEq for StartErrorCode
Auto Trait Implementations§
impl RefUnwindSafe for StartErrorCode
impl Send for StartErrorCode
impl Sync for StartErrorCode
impl Unpin for StartErrorCode
impl UnwindSafe for StartErrorCode
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