pub struct SharedReservation(/* private fields */);Expand description
Cloneable ownership used when a charged payload crosses an in-process response router. The underlying reservation releases only after the final envelope/consumer drops it.
Implementations§
pub fn new(reservation: Reservation) -> Self
pub fn resource(&self) -> ResourceClass
pub fn amount(&self) -> usize
Trait Implementations§
Source§fn clone(&self) -> SharedReservation
fn clone(&self) -> SharedReservation
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
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