pub struct Modules { /* private fields */ }Implementations§
Source§impl Modules
impl Modules
pub fn from_vec(modules: Vec<Module>) -> Result<Modules, Error>
pub const fn all(&self) -> &Vec<Module>
pub fn get(&self, name: &str) -> Option<&Module>
pub fn resolve_dependencies(modules: Vec<Module>) -> Result<Vec<Module>, Error>
pub fn list_names(&self) -> Vec<String>
pub fn get_provided_audiences() -> Vec<String>
pub fn get_valid_audiences(&self, module_name: &str) -> Vec<String>
pub fn get_server_audiences(_server_name: &str, _port: u16) -> Vec<String>
Trait Implementations§
Source§impl ModuleRuntime for Modules
impl ModuleRuntime for Modules
fn routes( &self, _ctx: &AppContext, _registry: &ModuleApiRegistry, ) -> Option<Router>
fn create_api_registry(&self) -> ModuleApiRegistry
Auto Trait Implementations§
impl Freeze for Modules
impl RefUnwindSafe for Modules
impl Send for Modules
impl Sync for Modules
impl Unpin for Modules
impl UnwindSafe for Modules
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more