pub struct ServiceBindings { /* private fields */ }Expand description
The four production effect seams, built once and lent as Services.
Implementations§
Source§impl ServiceBindings
impl ServiceBindings
Sourcepub fn new(
http: &Arc<dyn LysHttp>,
bearer: &str,
machine: String,
publisher: &Arc<dyn ServicePublisher>,
) -> Self
pub fn new( http: &Arc<dyn LysHttp>, bearer: &str, machine: String, publisher: &Arc<dyn ServicePublisher>, ) -> Self
Binds every seam: Lys asked through http with bearer (this
machine’s own pass), seats started on machine, messages published
through publisher.
Sourcepub const fn watches_context(&self) -> bool
pub const fn watches_context(&self) -> bool
Whether the operator asked for the context watch to run.
Sourcepub fn context_reporter(&self) -> Arc<ContextReporter> ⓘ
pub fn context_reporter(&self) -> Arc<ContextReporter> ⓘ
The reporter the context watch shares with the context-watch call.
Sourcepub fn configure(
lys: &LysConfig,
services: Arc<LiminalConnectionServices>,
handle: Handle,
now: u64,
) -> Result<Option<Self>, ServiceEffectError>
pub fn configure( lys: &LysConfig, services: Arc<LiminalConnectionServices>, handle: Handle, now: u64, ) -> Result<Option<Self>, ServiceEffectError>
Builds the bindings [auth.lys.services] configures; Ok(None)
without the section. Lys is asked over HTTP on handle’s runtime;
messages are published through services as liminal.<host>.
§Errors
[auth.lys.machine] is absent (the services would have no identity to
ask Lys as), this machine’s pass or the issuer’s key set cannot be
read or does not verify, or the issuer is not an HTTP origin.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for ServiceBindings
impl !UnwindSafe for ServiceBindings
impl Freeze for ServiceBindings
impl Send for ServiceBindings
impl Sync for ServiceBindings
impl Unpin for ServiceBindings
impl UnsafeUnpin for ServiceBindings
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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