pub struct Registry<T> { /* private fields */ }Expand description
泛型注册表:Registry<Box<dyn SymmetricCipher>> 等。
注册表按 item.identifier() 存储;相同标识重复注册以最后一次为准。
kind 仅用于错误消息(如 “symmetric cipher”)。
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for Registry<T>
impl<T> RefUnwindSafe for Registry<T>
impl<T> Send for Registry<T>
impl<T> Sync for Registry<T>
impl<T> Unpin for Registry<T>
impl<T> UnsafeUnpin for Registry<T>
impl<T> UnwindSafe for Registry<T>
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