pub struct BridgeMapping { /* private fields */ }Expand description
Top-Level-Mapping mit O(1)-Lookup nach (repository_id, object_key).
Implementations§
Source§impl BridgeMapping
impl BridgeMapping
Sourcepub fn add_route(&mut self, route: BridgeRoute)
pub fn add_route(&mut self, route: BridgeRoute)
Registriert eine Route.
Sourcepub fn lookup(
&self,
repository_id: &str,
object_key: &[u8],
) -> Option<&BridgeRoute>
pub fn lookup( &self, repository_id: &str, object_key: &[u8], ) -> Option<&BridgeRoute>
Lookup einer Route.
Sourcepub fn all_routes(&self) -> Vec<&BridgeRoute>
pub fn all_routes(&self) -> Vec<&BridgeRoute>
Liste aller Routes.
Trait Implementations§
Source§impl Clone for BridgeMapping
impl Clone for BridgeMapping
Source§fn clone(&self) -> BridgeMapping
fn clone(&self) -> BridgeMapping
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 moreSource§impl Debug for BridgeMapping
impl Debug for BridgeMapping
Source§impl Default for BridgeMapping
impl Default for BridgeMapping
Source§fn default() -> BridgeMapping
fn default() -> BridgeMapping
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for BridgeMapping
impl RefUnwindSafe for BridgeMapping
impl Send for BridgeMapping
impl Sync for BridgeMapping
impl Unpin for BridgeMapping
impl UnsafeUnpin for BridgeMapping
impl UnwindSafe for BridgeMapping
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