pub struct MailboxLiveControlSource(/* private fields */);Expand description
Adapter exposing any MailboxStore as a runtime LiveRunCommandSource.
The runtime consumes live commands through LiveRunCommandSource (defined
in runtime-contract); the mailbox store is the durable source of those
commands. With MailboxStore now living in server-contract, a blanket
impl<T: MailboxStore> LiveRunCommandSource for T would violate the orphan
rule (foreign trait over a generic type), so this concrete wrapper provides
the bridge instead.
Implementations§
Source§impl MailboxLiveControlSource
impl MailboxLiveControlSource
pub fn new(store: Arc<dyn MailboxStore>) -> MailboxLiveControlSource
Trait Implementations§
Source§impl LiveRunCommandSource for MailboxLiveControlSource
impl LiveRunCommandSource for MailboxLiveControlSource
fn open_live_channel_for<'life0, 'life1, 'async_trait>(
&'life0 self,
target: &'life1 LiveRunTarget,
) -> Pin<Box<dyn Future<Output = Result<Pin<Box<dyn Stream<Item = LiveRunCommandEntry> + Send>>, LiveControlError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
MailboxLiveControlSource: 'async_trait,
Auto Trait Implementations§
impl !RefUnwindSafe for MailboxLiveControlSource
impl !UnwindSafe for MailboxLiveControlSource
impl Freeze for MailboxLiveControlSource
impl Send for MailboxLiveControlSource
impl Sync for MailboxLiveControlSource
impl Unpin for MailboxLiveControlSource
impl UnsafeUnpin for MailboxLiveControlSource
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