pub struct SaolaServiceProvider { /* private fields */ }Expand description
Service provider integrating saola-kit subsystems into a laravel-rust application.
Implementations§
Source§impl SaolaServiceProvider
impl SaolaServiceProvider
pub fn new() -> Self
pub fn with_context(self, spec: ContextSpec) -> Self
pub fn with_route(self, entry: RouteEntry) -> Self
pub fn with_module<M: SaolaModule>(self, module: M) -> Self
pub fn with_language_store(self, store: Arc<dyn LanguageStore>) -> Self
pub fn with_language_scope( self, name: impl Into<String>, definition: ScopeDefinition, ) -> Self
Trait Implementations§
Source§impl Debug for SaolaServiceProvider
impl Debug for SaolaServiceProvider
Source§impl Default for SaolaServiceProvider
impl Default for SaolaServiceProvider
Auto Trait Implementations§
impl !RefUnwindSafe for SaolaServiceProvider
impl !UnwindSafe for SaolaServiceProvider
impl Forget for SaolaServiceProvider
impl Freeze for SaolaServiceProviderwhere
*const u8 is !null: Freeze,
PhantomData<ContextSpec>: Freeze,
PhantomData<RouteEntry>: Freeze,
PhantomData<Arc<dyn SaolaModule>>: Freeze,
PhantomData<Box<dyn Fn(&ClientShare) + Sync + Send>>: Freeze,
*const ArcInner<dyn LanguageStore> is !null: Freeze,
PhantomData<ArcInner<dyn LanguageStore>>: Freeze,
*const LeafNode<String, ScopeDefinition> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(String, ScopeDefinition)>>: Freeze,
impl Move for SaolaServiceProvider
impl Send for SaolaServiceProviderwhere
RawVecInner: Send,
Arc<dyn SaolaModule>: Send,
BoxRaw<dyn Fn(&ClientShare) + Sync + Send>: Send,
Arc<dyn LanguageStore>: Send,
NodeRef<Owned, String, ScopeDefinition, LeafOrInternal>: Send,
BoxRaw<(String, ScopeDefinition)>: Send,
impl Sync for SaolaServiceProviderwhere
RawVecInner: Sync,
Arc<dyn SaolaModule>: Sync,
BoxRaw<dyn Fn(&ClientShare) + Sync + Send>: Sync,
Arc<dyn LanguageStore>: Sync,
NodeRef<Owned, String, ScopeDefinition, LeafOrInternal>: Sync,
BoxRaw<(String, ScopeDefinition)>: Sync,
impl Unpin for SaolaServiceProviderwhere
*const u8 is !null: Unpin,
Arc<dyn SaolaModule>: Unpin,
Box<dyn Fn(&ClientShare) + Sync + Send>: Unpin,
Arc<dyn LanguageStore>: Unpin,
*const LeafNode<String, ScopeDefinition> is !null: Unpin,
Box<(String, ScopeDefinition)>: Unpin,
impl UnsafeUnpin for SaolaServiceProviderwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<ContextSpec>: UnsafeUnpin,
PhantomData<RouteEntry>: UnsafeUnpin,
PhantomData<Arc<dyn SaolaModule>>: UnsafeUnpin,
PhantomData<Box<dyn Fn(&ClientShare) + Sync + Send>>: UnsafeUnpin,
*const ArcInner<dyn LanguageStore> is !null: UnsafeUnpin,
PhantomData<ArcInner<dyn LanguageStore>>: UnsafeUnpin,
*const LeafNode<String, ScopeDefinition> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, ScopeDefinition)>>: UnsafeUnpin,
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