pub struct BatteryPool { /* private fields */ }Expand description
An interface for abstracting over a pool of batteries in the microgrid.
Implementations§
Source§impl BatteryPool
impl BatteryPool
Sourcepub fn power(&mut self) -> Result<Formula<Power>, Error>
pub fn power(&mut self) -> Result<Formula<Power>, Error>
Returns a formula for the active power of the battery pool.
Sourcepub fn power_bounds(&mut self) -> Receiver<Vec<Bounds<Power>>>
pub fn power_bounds(&mut self) -> Receiver<Vec<Bounds<Power>>>
Returns a receiver for the aggregated active-power bounds of the pool, updated on each snapshot.
Reuses the running bounds tracker if one exists and still has active receivers; otherwise starts a new one (which also starts or reuses the underlying telemetry tracker).
Auto Trait Implementations§
impl Freeze for BatteryPool
impl RefUnwindSafe for BatteryPool
impl Send for BatteryPool
impl Sync for BatteryPool
impl Unpin for BatteryPool
impl UnsafeUnpin for BatteryPool
impl UnwindSafe for BatteryPool
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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 moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request