pub struct WorkerFrontDoorServices;Expand description
ConnectionServices for the worker front door: registration, correlated
push/reply, and notifier-consumed reserved publishes only.
The type holds no state and constructs nothing, so Self::new is an
infallible const fn — a structural signal that this path starts no scheduler
and opens no store (both of which are fallible in full mode). Ordinary
publish/subscribe/conversation operations return a typed ServerError, which
[super::apply] renders as the matching typed error frame
(PublishError/SubscribeError/ConversationError); the connection stays
healthy across the rejection.
Implementations§
Trait Implementations§
Source§impl Clone for WorkerFrontDoorServices
impl Clone for WorkerFrontDoorServices
Source§fn clone(&self) -> WorkerFrontDoorServices
fn clone(&self) -> WorkerFrontDoorServices
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 moreSource§impl ConnectionServices for WorkerFrontDoorServices
impl ConnectionServices for WorkerFrontDoorServices
Source§fn publish(
&self,
channel: &str,
_envelope: &MessageEnvelope,
_idempotency_key: Option<&str>,
) -> Result<PublishOutcome, ServerError>
fn publish( &self, channel: &str, _envelope: &MessageEnvelope, _idempotency_key: Option<&str>, ) -> Result<PublishOutcome, ServerError>
Delegates a publish request to the liminal library. Read more
Source§fn subscribe(
&self,
channel: &str,
_accepted_schemas: &[ProtocolSchemaId],
_install: Option<InboxInstall>,
) -> Result<ConnectionSubscription, ServerError>
fn subscribe( &self, channel: &str, _accepted_schemas: &[ProtocolSchemaId], _install: Option<InboxInstall>, ) -> Result<ConnectionSubscription, ServerError>
Delegates a subscribe request to the liminal library. Read more
Source§fn unsubscribe(
&self,
subscription: ConnectionSubscription,
) -> Result<(), ServerError>
fn unsubscribe( &self, subscription: ConnectionSubscription, ) -> Result<(), ServerError>
Delegates unsubscribe to the liminal library. Read more
Source§fn open_conversation(
&self,
_conversation_id: u64,
subject: &str,
) -> Result<ConnectionConversation, ServerError>
fn open_conversation( &self, _conversation_id: u64, subject: &str, ) -> Result<ConnectionConversation, ServerError>
Delegates conversation open to the liminal library. Read more
Source§fn conversation_message(
&self,
_conversation: &ConnectionConversation,
_envelope: &MessageEnvelope,
) -> Result<(), ServerError>
fn conversation_message( &self, _conversation: &ConnectionConversation, _envelope: &MessageEnvelope, ) -> Result<(), ServerError>
Delegates a conversation message to the liminal library. Read more
Source§fn close_conversation(
&self,
conversation: ConnectionConversation,
) -> Result<(), ServerError>
fn close_conversation( &self, conversation: ConnectionConversation, ) -> Result<(), ServerError>
Delegates conversation close to the liminal library. Read more
Source§fn flush_durable_state(&self) -> Result<(), ServerError>
fn flush_durable_state(&self) -> Result<(), ServerError>
Flushes durable channel state through the liminal library boundary. Read more
Source§fn supports_channel_operations(&self) -> bool
fn supports_channel_operations(&self) -> bool
Whether this adapter backs ordinary channel and conversation operations. Read more
impl Copy for WorkerFrontDoorServices
Source§impl Debug for WorkerFrontDoorServices
impl Debug for WorkerFrontDoorServices
Source§impl Default for WorkerFrontDoorServices
impl Default for WorkerFrontDoorServices
Source§fn default() -> WorkerFrontDoorServices
fn default() -> WorkerFrontDoorServices
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for WorkerFrontDoorServices
impl RefUnwindSafe for WorkerFrontDoorServices
impl Send for WorkerFrontDoorServices
impl Sync for WorkerFrontDoorServices
impl Unpin for WorkerFrontDoorServices
impl UnsafeUnpin for WorkerFrontDoorServices
impl UnwindSafe for WorkerFrontDoorServices
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