pub struct HostConfig { /* private fields */ }Implementations§
Source§impl HostConfig
impl HostConfig
pub fn new(bind: impl Into<SocketAddr>) -> HostConfig
pub fn with_drain_deadline(self, deadline: Duration) -> HostConfig
pub fn with_max_body_bytes(self, max: usize) -> HostConfig
pub fn tcp(bind: impl Into<SocketAddr>, tcp: TcpTransport) -> HostConfig
pub fn with_tcp(self, tcp: TcpTransport) -> HostConfig
pub fn with_webtransport(self, webtransport: WebTransportConfig) -> HostConfig
pub fn tcp_listener( self, listener: TcpListener, tcp: TcpTransport, ) -> HostConfig
pub fn webtransport_endpoint(self, endpoint: Endpoint<Server>) -> HostConfig
pub async fn start(self, node: &Arc<Node>) -> Result<Hosting, HostError>
Auto Trait Implementations§
impl !Freeze for HostConfig
impl !RefUnwindSafe for HostConfig
impl !UnwindSafe for HostConfig
impl Send for HostConfig
impl Sync for HostConfig
impl Unpin for HostConfig
impl UnsafeUnpin for HostConfig
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