pub enum ChildError {
NameTooLong {
len: usize,
max: usize,
},
EmptyName,
ArenaFull,
}Expand description
Why Logger::create_child made no child — RFC-0102 D1.
rclrs’s create_child is fallible too (Result<Logger, RclrsError>), so a
Rust caller chooses its own fallback (parent.create_child("x").unwrap_or(parent)).
The C and C++ surfaces, whose upstream shapes cannot report failure, fall
back to the parent automatically (RFC-0102 D3).
Variants§
NameTooLong
The child’s full name is longer than MAX_LOGGER_NAME_LEN bytes.
EmptyName
The full name would be empty: an empty child_name under the
catch-all, whose children are top-level names.
ArenaFull
The runtime-logger arena, its name bytes, or the intern table is full.
Trait Implementations§
Source§impl Clone for ChildError
impl Clone for ChildError
Source§fn clone(&self) -> ChildError
fn clone(&self) -> ChildError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ChildError
Source§impl Debug for ChildError
impl Debug for ChildError
Source§impl Display for ChildError
impl Display for ChildError
impl Eq for ChildError
Source§impl PartialEq for ChildError
impl PartialEq for ChildError
impl StructuralPartialEq for ChildError
Auto Trait Implementations§
impl Freeze for ChildError
impl RefUnwindSafe for ChildError
impl Send for ChildError
impl Sync for ChildError
impl Unpin for ChildError
impl UnsafeUnpin for ChildError
impl UnwindSafe for ChildError
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