pub struct Server { /* private fields */ }Expand description
An attested HTTP/3 server bound to a QUIC endpoint.
Implementations§
Source§impl Server
Setup and serving.
impl Server
Setup and serving.
Sourcepub fn bind(addr: SocketAddr) -> Result<Self, Box<dyn Error>>
pub fn bind(addr: SocketAddr) -> Result<Self, Box<dyn Error>>
Attests, builds the RA-TLS identity and binds the QUIC endpoint to addr.
Must be called within a Tokio runtime. Binding port 0 picks a free port; see
local_addr.
Sourcepub fn local_addr(&self) -> Result<SocketAddr>
pub fn local_addr(&self) -> Result<SocketAddr>
Returns the address the endpoint is bound to.
Auto Trait Implementations§
impl !RefUnwindSafe for Server
impl !UnwindSafe for Server
impl Freeze for Server
impl Send for Server
impl Sync for Server
impl Unpin for Server
impl UnsafeUnpin for Server
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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