pub struct EndpointCatalog { /* private fields */ }Expand description
Ordered endpoint catalog with duplicate identity and route-shape detection.
Implementations§
Source§impl EndpointCatalog
impl EndpointCatalog
Sourcepub fn register(&mut self, endpoint: EndpointMetadata) -> SoapResult<()>
pub fn register(&mut self, endpoint: EndpointMetadata) -> SoapResult<()>
Registers one validated endpoint.
Sourcepub fn register_all<I>(&mut self, endpoints: I) -> SoapResult<()>where
I: IntoIterator<Item = EndpointMetadata>,
pub fn register_all<I>(&mut self, endpoints: I) -> SoapResult<()>where
I: IntoIterator<Item = EndpointMetadata>,
Atomically registers every endpoint or leaves the catalog unchanged.
Sourcepub fn endpoint(&self, id: &EndpointId) -> Option<&EndpointMetadata>
pub fn endpoint(&self, id: &EndpointId) -> Option<&EndpointMetadata>
Returns one endpoint by stable identity.
Sourcepub fn route(
&self,
method: &Method,
path: &RoutePath,
) -> Option<&EndpointMetadata>
pub fn route( &self, method: &Method, path: &RoutePath, ) -> Option<&EndpointMetadata>
Returns one endpoint by method and declared portable route shape.
Sourcepub fn endpoints(&self) -> &[EndpointMetadata]
pub fn endpoints(&self) -> &[EndpointMetadata]
Returns endpoints in deterministic registration order.
Sourcepub fn into_endpoints(self) -> Vec<EndpointMetadata>
pub fn into_endpoints(self) -> Vec<EndpointMetadata>
Consumes the catalog into deterministic endpoint order.
Trait Implementations§
Source§impl Clone for EndpointCatalog
impl Clone for EndpointCatalog
Source§fn clone(&self) -> EndpointCatalog
fn clone(&self) -> EndpointCatalog
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 EndpointCatalog
impl Debug for EndpointCatalog
Source§impl Default for EndpointCatalog
impl Default for EndpointCatalog
Source§fn default() -> EndpointCatalog
fn default() -> EndpointCatalog
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for EndpointCatalog
impl RefUnwindSafe for EndpointCatalog
impl Send for EndpointCatalog
impl Sync for EndpointCatalog
impl Unpin for EndpointCatalog
impl UnsafeUnpin for EndpointCatalog
impl UnwindSafe for EndpointCatalog
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