pub enum Effect {
Http(Request<<Http<Event> as Capability<Event>>::Operation>),
PersistentStorage(Request<<PersistentStorage<Event> as Capability<Event>>::Operation>),
Render(Request<<Render<Event> as Capability<Event>>::Operation>),
}Variants§
Http(Request<<Http<Event> as Capability<Event>>::Operation>)
PersistentStorage(Request<<PersistentStorage<Event> as Capability<Event>>::Operation>)
Render(Request<<Render<Event> as Capability<Event>>::Operation>)
Implementations§
Source§impl Effect
impl Effect
pub fn is_persistent_storage(&self) -> bool
pub fn into_persistent_storage( self, ) -> Option<Request<<PersistentStorage<Event> as Capability<Event>>::Operation>>
pub fn expect_persistent_storage( self, ) -> Request<<PersistentStorage<Event> as Capability<Event>>::Operation>
Trait Implementations§
Source§impl Effect for Effect
impl Effect for Effect
Source§impl From<Request<<PersistentStorage<Event> as Capability<Event>>::Operation>> for Effect
impl From<Request<<PersistentStorage<Event> as Capability<Event>>::Operation>> for Effect
Source§fn from(
value: Request<<PersistentStorage<Event> as Capability<Event>>::Operation>,
) -> Self
fn from( value: Request<<PersistentStorage<Event> as Capability<Event>>::Operation>, ) -> Self
Converts to this type from the input type.
Source§impl WithContext<Event, Effect> for Capabilities
impl WithContext<Event, Effect> for Capabilities
fn new_with_context(context: ProtoContext<Effect, Event>) -> Capabilities
Auto Trait Implementations§
impl Freeze for Effect
impl !RefUnwindSafe for Effect
impl Send for Effect
impl !Sync for Effect
impl Unpin for Effect
impl !UnwindSafe for Effect
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