pub struct RuntaraServer { /* private fields */ }Expand description
QUIC server for runtara-core
Implementations§
Source§impl RuntaraServer
impl RuntaraServer
Sourcepub fn new(config: RuntaraServerConfig) -> Result<Self, ServerError>
pub fn new(config: RuntaraServerConfig) -> Result<Self, ServerError>
Create a new server with the given configuration
Sourcepub fn localhost(bind_addr: SocketAddr) -> Result<Self, ServerError>
pub fn localhost(bind_addr: SocketAddr) -> Result<Self, ServerError>
Create a server with self-signed certificate for local development
Sourcepub fn localhost_with_config(
bind_addr: SocketAddr,
config: RuntaraServerConfig,
) -> Result<Self, ServerError>
pub fn localhost_with_config( bind_addr: SocketAddr, config: RuntaraServerConfig, ) -> Result<Self, ServerError>
Create a server with self-signed certificate and custom config
Sourcepub fn config(&self) -> &RuntaraServerConfig
pub fn config(&self) -> &RuntaraServerConfig
Get the server configuration
Sourcepub fn local_addr(&self) -> Result<SocketAddr, ServerError>
pub fn local_addr(&self) -> Result<SocketAddr, ServerError>
Get the local address the server is bound to
Auto Trait Implementations§
impl Freeze for RuntaraServer
impl !RefUnwindSafe for RuntaraServer
impl Send for RuntaraServer
impl Sync for RuntaraServer
impl Unpin for RuntaraServer
impl !UnwindSafe for RuntaraServer
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