pub enum RecordingError {
TargetProxyOpen,
RecordingStart,
RecordingAlreadyStarted,
RecordingStop,
DuplicateTraceFile,
NoSuchTraceFile,
NoSuchTarget,
DisconnectedTarget,
// some variants omitted
}
Expand description
This covers errors from using the Tracing
protocol (specifically
trace recording errors).
Variants§
TargetProxyOpen
Error encountered when opening the proxy to the target.
RecordingStart
This is a general error when starting a trace.
RecordingAlreadyStarted
An error encountered if a trace recording has already been started for a given Fuchsia target.
RecordingStop
An error encountered when attempting to stop a trace. This causes an
immediate termination of the client channel, so the user should not
attempt to run StopRecording
again.
DuplicateTraceFile
Error for when a trace file is already being written to by the tracing service.
NoSuchTraceFile
When attempting to stop a trace, there were no active traces found for the given lookup name.
NoSuchTarget
No targets were found matching the query.
DisconnectedTarget
The query matched a target that is not connected to the Daemon’s FIDL channels.
Implementations§
Source§impl RecordingError
impl RecordingError
pub fn from_primitive(prim: u32) -> Option<RecordingError>
pub fn from_primitive_allow_unknown(prim: u32) -> RecordingError
pub fn unknown() -> RecordingError
pub const fn into_primitive(self) -> u32
pub fn is_unknown(&self) -> bool
Trait Implementations§
Source§impl Clone for RecordingError
impl Clone for RecordingError
Source§fn clone(&self) -> RecordingError
fn clone(&self) -> RecordingError
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 RecordingError
impl Debug for RecordingError
Source§impl<D> Decode<RecordingError, D> for RecordingErrorwhere
D: ResourceDialect,
impl<D> Decode<RecordingError, D> for RecordingErrorwhere
D: ResourceDialect,
Source§fn new_empty() -> RecordingError
fn new_empty() -> RecordingError
Creates a valid instance of
Self
. The specific value does not matter,
since it will be overwritten by decode
.Source§impl<D> Encode<RecordingError, D> for RecordingErrorwhere
D: ResourceDialect,
impl<D> Encode<RecordingError, D> for RecordingErrorwhere
D: ResourceDialect,
Source§impl Hash for RecordingError
impl Hash for RecordingError
Source§impl Ord for RecordingError
impl Ord for RecordingError
Source§fn cmp(&self, other: &RecordingError) -> Ordering
fn cmp(&self, other: &RecordingError) -> 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 RecordingError
impl PartialEq for RecordingError
Source§impl PartialOrd for RecordingError
impl PartialOrd for RecordingError
Source§impl TypeMarker for RecordingError
impl TypeMarker for RecordingError
Source§type Owned = RecordingError
type Owned = RecordingError
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 RecordingError
impl ValueTypeMarker for RecordingError
Source§type Borrowed<'a> = RecordingError
type Borrowed<'a> = RecordingError
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: &<RecordingError as TypeMarker>::Owned,
) -> <RecordingError as ValueTypeMarker>::Borrowed<'_>
fn borrow( value: &<RecordingError as TypeMarker>::Owned, ) -> <RecordingError as ValueTypeMarker>::Borrowed<'_>
Cheaply converts from
&Self::Owned
to Self::Borrowed
.impl Copy for RecordingError
impl Eq for RecordingError
impl StructuralPartialEq for RecordingError
Auto Trait Implementations§
impl Freeze for RecordingError
impl RefUnwindSafe for RecordingError
impl Send for RecordingError
impl Sync for RecordingError
impl Unpin for RecordingError
impl UnwindSafe for RecordingError
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