#[repr(u32)]pub enum RecorderError {
NoDrivers = 1,
InvalidSamplingInterval = 2,
AlreadyLogging = 3,
DuplicatedMetric = 4,
TooManyActiveClients = 5,
InvalidStatisticsInterval = 6,
Internal = 7,
}
Expand description
Errors associated with Recorder methods. If the request contains any of the following errors, it will fail without affecting the existing logging tasks.
Variants§
NoDrivers = 1
Indicates that no driver is found for requested metric logging.
InvalidSamplingInterval = 2
Indicates that an invalid sampling interval was provided.
AlreadyLogging = 3
Requests to start logging will fail if logging is already active for a given client.
DuplicatedMetric = 4
Indicates that the logging request contains duplicated metric type.
TooManyActiveClients = 5
Indicates that the total number of active clients has reached the
allowed maxium (defined by MAX_CONCURRENT_CLIENTS = 20
in
the Recorder to keep memory use bounded).
InvalidStatisticsInterval = 6
Indicates that statistics is enabled and an invalid statistics interval is provided.
Internal = 7
Indicates that the request failed due to an internal error.
Implementations§
Source§impl RecorderError
impl RecorderError
pub fn from_primitive(prim: u32) -> Option<Self>
pub const fn into_primitive(self) -> u32
pub fn is_unknown(&self) -> bool
👎Deprecated: Strict enums should not use
is_unknown
Trait Implementations§
Source§impl Clone for RecorderError
impl Clone for RecorderError
Source§fn clone(&self) -> RecorderError
fn clone(&self) -> RecorderError
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 RecorderError
impl Debug for RecorderError
Source§impl<D: ResourceDialect> Decode<RecorderError, D> for RecorderError
impl<D: ResourceDialect> Decode<RecorderError, D> for RecorderError
Source§impl<D: ResourceDialect> Encode<RecorderError, D> for RecorderError
impl<D: ResourceDialect> Encode<RecorderError, D> for RecorderError
Source§impl Hash for RecorderError
impl Hash for RecorderError
Source§impl Ord for RecorderError
impl Ord for RecorderError
Source§fn cmp(&self, other: &RecorderError) -> Ordering
fn cmp(&self, other: &RecorderError) -> 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 RecorderError
impl PartialEq for RecorderError
Source§impl PartialOrd for RecorderError
impl PartialOrd for RecorderError
Source§impl TypeMarker for RecorderError
impl TypeMarker for RecorderError
Source§type Owned = RecorderError
type Owned = RecorderError
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 RecorderError
impl ValueTypeMarker for RecorderError
Source§type Borrowed<'a> = RecorderError
type Borrowed<'a> = RecorderError
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 RecorderError
impl Eq for RecorderError
impl StructuralPartialEq for RecorderError
Auto Trait Implementations§
impl Freeze for RecorderError
impl RefUnwindSafe for RecorderError
impl Send for RecorderError
impl Sync for RecorderError
impl Unpin for RecorderError
impl UnwindSafe for RecorderError
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)