pub struct Publications { /* private fields */ }Expand description
Dispatcher-owned inbound compositor and outbound publisher runtime.
Implementations§
Source§impl Publications
impl Publications
Sourcepub fn new(
config: PublicationConfig,
compositor: Compositor,
composition: Arc<dyn PublicationComposition>,
authorization: Arc<dyn PublicationAuthorization>,
) -> Result<Self, PublicationError>
pub fn new( config: PublicationConfig, compositor: Compositor, composition: Arc<dyn PublicationComposition>, authorization: Arc<dyn PublicationAuthorization>, ) -> Result<Self, PublicationError>
Construct a bounded service around the application’s exact compositor and policies.
Sourcepub fn handle(&self) -> PublicationsHandle
pub fn handle(&self) -> PublicationsHandle
Application handle retained across dispatcher ownership transfer.
Trait Implementations§
Source§impl Debug for Publications
impl Debug for Publications
Source§impl Drop for Publications
impl Drop for Publications
Auto Trait Implementations§
impl Freeze for Publications
impl !RefUnwindSafe for Publications
impl Send for Publications
impl Sync for Publications
impl Unpin for Publications
impl UnsafeUnpin for Publications
impl !UnwindSafe for Publications
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<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more