pub enum ServiceTransport {
Http,
Knative,
}Expand description
Runtime transport for the scaffolded service.
Variants§
Http
Axum HTTP transport (microsvc::serve).
Knative
Knative / CloudEvents HTTP ingress (cloud_events_router).
Trait Implementations§
Source§impl Clone for ServiceTransport
impl Clone for ServiceTransport
Source§fn clone(&self) -> ServiceTransport
fn clone(&self) -> ServiceTransport
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 moreimpl Copy for ServiceTransport
Source§impl Debug for ServiceTransport
impl Debug for ServiceTransport
impl Eq for ServiceTransport
Source§impl From<Transport> for ServiceTransport
impl From<Transport> for ServiceTransport
Source§impl PartialEq for ServiceTransport
impl PartialEq for ServiceTransport
Source§fn eq(&self, other: &ServiceTransport) -> bool
fn eq(&self, other: &ServiceTransport) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ServiceTransport
Auto Trait Implementations§
impl Freeze for ServiceTransport
impl RefUnwindSafe for ServiceTransport
impl Send for ServiceTransport
impl Sync for ServiceTransport
impl Unpin for ServiceTransport
impl UnsafeUnpin for ServiceTransport
impl UnwindSafe for ServiceTransport
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