pub struct ServerSqlRegistry { /* private fields */ }Expand description
Bounded registry used by an HTTP/service boundary. Registration is a startup operation; lookup accepts only a name that was registered by the server and never parses SQL supplied by a caller.
Implementations§
Source§impl ServerSqlRegistry
impl ServerSqlRegistry
pub fn with_limit(max_extensions: usize) -> Result<Self, ConfigError>
pub fn register( &mut self, extension: ServerSqlExtension, ) -> Result<(), ConfigError>
pub fn get(&self, name: &str) -> Option<ServerSqlExtension>
pub fn iter(&self) -> impl Iterator<Item = &ServerSqlExtension>
Trait Implementations§
Source§impl Clone for ServerSqlRegistry
impl Clone for ServerSqlRegistry
Source§impl Debug for ServerSqlRegistry
impl Debug for ServerSqlRegistry
Auto Trait Implementations§
impl Freeze for ServerSqlRegistry
impl RefUnwindSafe for ServerSqlRegistry
impl Send for ServerSqlRegistry
impl Sync for ServerSqlRegistry
impl Unpin for ServerSqlRegistry
impl UnsafeUnpin for ServerSqlRegistry
impl UnwindSafe for ServerSqlRegistry
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