pub struct MemoryErrorRegistry { /* private fields */ }Expand description
A simple in-memory registry backed by HashMap.
Implementations§
Trait Implementations§
Source§impl Default for MemoryErrorRegistry
impl Default for MemoryErrorRegistry
Source§impl ErrorSignatureRegistry for MemoryErrorRegistry
impl ErrorSignatureRegistry for MemoryErrorRegistry
Source§fn get_by_selector(&self, selector: [u8; 4]) -> Vec<ErrorSignature>
fn get_by_selector(&self, selector: [u8; 4]) -> Vec<ErrorSignature>
Look up all known signatures matching a 4-byte selector.
Returns multiple signatures when there are collisions.
Source§fn get_by_name(&self, name: &str) -> Option<ErrorSignature>
fn get_by_name(&self, name: &str) -> Option<ErrorSignature>
Look up a signature by full name (e.g.
"InsufficientBalance").Auto Trait Implementations§
impl !Freeze for MemoryErrorRegistry
impl RefUnwindSafe for MemoryErrorRegistry
impl Send for MemoryErrorRegistry
impl Sync for MemoryErrorRegistry
impl Unpin for MemoryErrorRegistry
impl UnsafeUnpin for MemoryErrorRegistry
impl UnwindSafe for MemoryErrorRegistry
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