pub struct RouteRuntimeAggregate { /* private fields */ }Implementations§
Source§impl RouteRuntimeAggregate
impl RouteRuntimeAggregate
pub fn new(route_id: impl Into<String>) -> Self
pub fn from_snapshot( route_id: impl Into<String>, state: RouteRuntimeState, version: u64, ) -> Self
pub fn state(&self) -> &RouteRuntimeState
pub fn version(&self) -> u64
pub fn route_id(&self) -> &str
pub fn apply_command( &mut self, cmd: RouteLifecycleCommand, ) -> Result<Vec<RuntimeEvent>, CamelError>
Trait Implementations§
Source§impl Clone for RouteRuntimeAggregate
impl Clone for RouteRuntimeAggregate
Source§fn clone(&self) -> RouteRuntimeAggregate
fn clone(&self) -> RouteRuntimeAggregate
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for RouteRuntimeAggregate
impl RefUnwindSafe for RouteRuntimeAggregate
impl Send for RouteRuntimeAggregate
impl Sync for RouteRuntimeAggregate
impl Unpin for RouteRuntimeAggregate
impl UnsafeUnpin for RouteRuntimeAggregate
impl UnwindSafe for RouteRuntimeAggregate
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