Struct exocore_protos::registry::Registry
source · pub struct Registry { /* private fields */ }
Implementations§
source§impl Registry
impl Registry
pub fn new() -> Registry
pub fn new_with_exocore_types() -> Registry
pub fn register_well_knowns(&self)
pub fn register_file_descriptor_set(&self, fd_set: &FileDescriptorSet)
pub fn register_file_descriptor_set_bytes<R: Read>( &self, fd_set_bytes: R ) -> Result<(), Error>
pub fn register_file_descriptor( &self, file_descriptor_proto: FileDescriptorProto )
pub fn register_message_descriptor( &self, full_name: String, msg_descriptor: MessageDescriptor ) -> Arc<ReflectMessageDescriptor>
pub fn get_message_descriptor( &self, full_name: &str ) -> Result<Arc<ReflectMessageDescriptor>, Error>
pub fn message_descriptors(&self) -> Vec<Arc<ReflectMessageDescriptor>>
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Registry
impl Send for Registry
impl Sync for Registry
impl Unpin for Registry
impl UnwindSafe for Registry
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