pub struct HttpBind(/* private fields */);Expand description
Names the socket address at which an HTTP surface is bound.
Implementations§
Source§impl HttpBind
impl HttpBind
Sourcepub const fn new(address: SocketAddr) -> Self
pub const fn new(address: SocketAddr) -> Self
Names one socket address to bind.
Sourcepub const fn address(self) -> SocketAddr
pub const fn address(self) -> SocketAddr
Returns the socket address named.
Trait Implementations§
impl Copy for HttpBind
impl Eq for HttpBind
Source§impl From<SocketAddr> for HttpBind
impl From<SocketAddr> for HttpBind
Source§fn from(address: SocketAddr) -> Self
fn from(address: SocketAddr) -> Self
Converts to this type from the input type.
impl StructuralPartialEq for HttpBind
Auto Trait Implementations§
impl Freeze for HttpBind
impl RefUnwindSafe for HttpBind
impl Send for HttpBind
impl Sync for HttpBind
impl Unpin for HttpBind
impl UnsafeUnpin for HttpBind
impl UnwindSafe for HttpBind
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<This> HttpProgramExt<This> for This
impl<This> HttpProgramExt<This> for This
Source§fn compile_http<Program>(
&self,
program: Program,
) -> <Program as HttpProgramAlg<This>>::Routewhere
Program: HttpProgramAlg<This>,
fn compile_http<Program>(
&self,
program: Program,
) -> <Program as HttpProgramAlg<This>>::Routewhere
Program: HttpProgramAlg<This>,
Compiles a named HTTP program with this interpreter.