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: ChannelRef,
reply_channel: Option<ChannelRef>,
mep: Mep,
id: Option<String>,
) -> Self
pub fn new( host: impl Into<String>, port: u16, base_path: impl Into<String>, channel: ChannelRef, reply_channel: Option<ChannelRef>, mep: Mep, id: Option<String>, ) -> Self
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).
Sourcepub fn new_in_out(
host: impl Into<String>,
port: u16,
base_path: impl Into<String>,
channel: ChannelRef,
reply_channel: Option<ChannelRef>,
id: Option<String>,
) -> Self
pub fn new_in_out( host: impl Into<String>, port: u16, base_path: impl Into<String>, channel: ChannelRef, reply_channel: Option<ChannelRef>, id: Option<String>, ) -> Self
Convenience: construct InOut adapter (request/reply pattern).
Sourcepub fn new_in_only_202(
host: impl Into<String>,
port: u16,
base_path: impl Into<String>,
channel: ChannelRef,
id: Option<String>,
) -> Self
pub fn new_in_only_202( host: impl Into<String>, port: u16, base_path: impl Into<String>, channel: ChannelRef, id: Option<String>, ) -> Self
Convenience: construct InOnly202 adapter (fire-and-forget 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<()>
pub async fn run_once(self) -> Result<()>
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