pub enum ServiceProfile {
Full,
WorkerFrontDoor,
}Expand description
Which connection-services adapter the server constructs (D2).
Variants§
Full
Full channel/conversation/durability services — the default. Constructs the haematite store, channel supervisor, conversation supervisor, and dedup cache exactly as before.
WorkerFrontDoor
Capability-scoped worker front door: the connection supervisor only, with no channel/conversation/haematite machinery. Backs worker registration, correlated push/reply, and notifier-consumed reserved publishes; ordinary channel and conversation frames are rejected with a typed error frame.
Implementations§
Source§impl ServiceProfile
impl ServiceProfile
Sourcepub const WORKER_FRONT_DOOR: &'static str = "worker-front-door"
pub const WORKER_FRONT_DOOR: &'static str = "worker-front-door"
Config value selecting the worker-front-door profile.
Sourcepub fn parse(value: &str) -> Result<Self, ServerError>
pub fn parse(value: &str) -> Result<Self, ServerError>
Parses a [services] profile value into a typed profile.
§Errors
Returns ServerError::ConfigValidation for any value other than
Self::FULL or Self::WORKER_FRONT_DOOR.
Trait Implementations§
Source§impl Clone for ServiceProfile
impl Clone for ServiceProfile
Source§fn clone(&self) -> ServiceProfile
fn clone(&self) -> ServiceProfile
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ServiceProfile
Source§impl Debug for ServiceProfile
impl Debug for ServiceProfile
impl Eq for ServiceProfile
Source§impl PartialEq for ServiceProfile
impl PartialEq for ServiceProfile
impl StructuralPartialEq for ServiceProfile
Auto Trait Implementations§
impl Freeze for ServiceProfile
impl RefUnwindSafe for ServiceProfile
impl Send for ServiceProfile
impl Sync for ServiceProfile
impl Unpin for ServiceProfile
impl UnsafeUnpin for ServiceProfile
impl UnwindSafe for ServiceProfile
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.