Enum RecorderError
#[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§
§impl RecorderError
impl RecorderError
pub fn from_primitive(prim: u32) -> Option<RecorderError>
pub const fn into_primitive(self) -> u32
pub fn is_unknown(&self) -> bool
👎Deprecated: Strict enums should not use
is_unknown
Trait Implementations§
§impl Clone for RecorderError
impl Clone for RecorderError
§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 more§impl Debug for RecorderError
impl Debug for RecorderError
§impl<D> Decode<RecorderError, D> for RecorderErrorwhere
D: ResourceDialect,
impl<D> Decode<RecorderError, D> for RecorderErrorwhere
D: ResourceDialect,
§fn new_empty() -> RecorderError
fn new_empty() -> RecorderError
Creates a valid instance of
Self
. The specific value does not matter,
since it will be overwritten by decode
.§impl<D> Encode<RecorderError, D> for RecorderErrorwhere
D: ResourceDialect,
impl<D> Encode<RecorderError, D> for RecorderErrorwhere
D: ResourceDialect,
§impl Hash for RecorderError
impl Hash for RecorderError
§impl Ord for RecorderError
impl Ord for RecorderError
§impl PartialEq for RecorderError
impl PartialEq for RecorderError
§impl PartialOrd for RecorderError
impl PartialOrd for RecorderError
§impl TypeMarker for RecorderError
impl TypeMarker for RecorderError
§type Owned = RecorderError
type Owned = RecorderError
The owned Rust type which this FIDL type decodes into.
§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.
§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
.§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 more§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.§impl ValueTypeMarker for RecorderError
impl ValueTypeMarker for RecorderError
§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 more§fn borrow(
value: &<RecorderError as TypeMarker>::Owned,
) -> <RecorderError as ValueTypeMarker>::Borrowed<'_>
fn borrow( value: &<RecorderError as TypeMarker>::Owned, ) -> <RecorderError as ValueTypeMarker>::Borrowed<'_>
Cheaply converts from
&Self::Owned
to Self::Borrowed
.impl 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