pub struct Seam { /* private fields */ }Expand description
Where the running service is, once the builder says. Weak: the service owns the activation that holds this.
Implementations§
Source§impl Seam
impl Seam
Sourcepub fn attach(&self, service: &Arc<DynamicHub>)
pub fn attach(&self, service: &Arc<DynamicHub>)
The service this one is registered in; the first attach holds.
Sourcepub fn attach_components(&self, components: Arc<dyn Components>)
pub fn attach_components(&self, components: Arc<dyn Components>)
NOTES-4: the ui service’s word on versions; the first attach holds.
Sourcepub async fn component(
&self,
version: &str,
component: &str,
) -> Result<Held, String>
pub async fn component( &self, version: &str, component: &str, ) -> Result<Held, String>
NOTES-4: whether the kept version version holds component, as the
ui service says (off the runtime). Err: none attached, or it failed.
Sourcepub fn service(&self) -> Option<Arc<DynamicHub>>
pub fn service(&self) -> Option<Arc<DynamicHub>>
The running service, while it runs.
Sourcepub fn holds(
&self,
caller: &AuthContext,
grant: &str,
org: &str,
) -> Result<bool, String>
pub fn holds( &self, caller: &AuthContext, grant: &str, org: &str, ) -> Result<bool, String>
Whether caller holds grant (notes.save) on the organization
org, as the gate answers it now — through a role held on org:
or on *, within the session’s ceiling. A service with no gate
holds everything open. Err: not attached.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Seam
impl !UnwindSafe for Seam
impl Forget for Seam
impl Freeze for Seam
impl Move for Seam
impl Send for Seam
impl Sync for Seam
impl Unpin for Seam
impl UnsafeUnpin for Seam
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