pub struct HttpInboundAdapter { /* private fields */ }Implementations§
Source§impl HttpInboundAdapter
impl HttpInboundAdapter
pub fn id(&self) -> &str
pub fn addr(&self) -> SocketAddr
pub fn base_path(&self) -> &str
pub fn mep(&self) -> Mep
Sourcepub fn new(
host: impl Into<String>,
port: u16,
base_path: impl Into<String>,
channel: Arc<dyn Channel>,
reply_channel: Option<Arc<dyn Channel>>,
mep: Mep,
id: Option<String>,
) -> HttpInboundAdapter
pub fn new( host: impl Into<String>, port: u16, base_path: impl Into<String>, channel: Arc<dyn Channel>, reply_channel: Option<Arc<dyn Channel>>, mep: Mep, id: Option<String>, ) -> HttpInboundAdapter
Direct constructor bypassing the staged DSL builder.
Use this when you want to instantiate the adapter programmatically without chaining
Adapter::inbound().http()... calls. id is optional; if None, an id of the form
http-inbound:<host>:<port> is synthesized (matching the builder’s auto pattern).
Source§impl HttpInboundAdapter
impl HttpInboundAdapter
pub fn register_endpoint( &self, method: &str, path: &str, ep: Weak<InMemoryEndpoint>, )
pub fn register_endpoint_any(&self, path: &str, ep: Weak<InMemoryEndpoint>)
pub async fn serve(&self) -> Result<(), Error>
pub async fn run_once(self) -> Result<(), Error>
pub fn spawn_once(self) -> HttpServerHandle
pub fn spawn_serve(self) -> HttpServerHandle
Trait Implementations§
Source§impl BaseAdapter for HttpInboundAdapter
impl BaseAdapter for HttpInboundAdapter
Source§impl Clone for HttpInboundAdapter
impl Clone for HttpInboundAdapter
Source§fn clone(&self) -> HttpInboundAdapter
fn clone(&self) -> HttpInboundAdapter
Returns a duplicate of the value. Read more
1.0.0 · 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 HttpInboundAdapter
impl Debug for HttpInboundAdapter
Source§impl InboundAdapter for HttpInboundAdapter
impl InboundAdapter for HttpInboundAdapter
Auto Trait Implementations§
impl Freeze for HttpInboundAdapter
impl !RefUnwindSafe for HttpInboundAdapter
impl Send for HttpInboundAdapter
impl Sync for HttpInboundAdapter
impl Unpin for HttpInboundAdapter
impl !UnwindSafe for HttpInboundAdapter
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