pub struct Handle<A: Application> {
pub state: StateManager<A>,
pub records: RecordManager<A>,
pub streams: StreamManager<A>,
pub operations: OperationManager<A::Lanes>,
pub evidence: Evidence<A>,
/* private fields */
}Fields§
§state: StateManager<A>§records: RecordManager<A>§streams: StreamManager<A>§operations: OperationManager<A::Lanes>§evidence: Evidence<A>Implementations§
Source§impl<A: Application> Handle<A>
impl<A: Application> Handle<A>
pub fn services(&self) -> ServiceManager
pub async fn register(&self, registration: Registration<A::Lanes>) -> Result<()>
pub async fn unregister(&self, id: &QualifiedId) -> Result<()>
pub fn operation<O: OperationDeclaration<Request = O>>( &self, request: O, ) -> Invocation<O, A::Lanes>
Source§impl<A: Application> Handle<A>
impl<A: Application> Handle<A>
pub fn storage(&self) -> Option<&StorageManager<ErasedCatalog>>
Trait Implementations§
Auto Trait Implementations§
impl<A> !RefUnwindSafe for Handle<A>
impl<A> !UnwindSafe for Handle<A>
impl<A> Freeze for Handle<A>where
StateManager<A>: Freeze,
RecordManager<A>: Freeze,
StreamManager<A>: Freeze,
OperationManager<<A as Application>::Lanes>: Freeze,
Evidence<A>: Freeze,
impl<A> Send for Handle<A>where
StateManager<A>: Send,
RecordManager<A>: Send,
StreamManager<A>: Send,
OperationManager<<A as Application>::Lanes>: Send,
Evidence<A>: Send,
impl<A> Sync for Handle<A>where
StateManager<A>: Sync,
RecordManager<A>: Sync,
StreamManager<A>: Sync,
OperationManager<<A as Application>::Lanes>: Sync,
Evidence<A>: Sync,
impl<A> Unpin for Handle<A>where
StateManager<A>: Unpin,
RecordManager<A>: Unpin,
StreamManager<A>: Unpin,
OperationManager<<A as Application>::Lanes>: Unpin,
Evidence<A>: Unpin,
impl<A> UnsafeUnpin for Handle<A>where
StateManager<A>: UnsafeUnpin,
RecordManager<A>: UnsafeUnpin,
StreamManager<A>: UnsafeUnpin,
OperationManager<<A as Application>::Lanes>: UnsafeUnpin,
Evidence<A>: 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