pub struct Registry {
pub data: HashMap<String, Buffer>,
pub max_age: f64,
}Fields§
§data: HashMap<String, Buffer>§max_age: f64Implementations§
Source§impl Registry
impl Registry
pub fn new(max_age: f64) -> Self
pub fn add_transform(&mut self, t: Transform) -> Result<(), BufferError>
pub fn get_transform( &mut self, from: &str, to: &str, timestamp: Timestamp, ) -> Result<Transform, TransformError>
Auto Trait Implementations§
impl Freeze for Registry
impl RefUnwindSafe for Registry
impl Send for Registry
impl Sync for Registry
impl Unpin for Registry
impl UnwindSafe for Registry
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