pub struct RelayServerBuilder {
server_keypair: Option<KeyPair>,
address: Option<SocketAddr>,
redis_url: Option<String>,
blob_dir: Option<PathBuf>,
}Fields§
§server_keypair: Option<KeyPair>§address: Option<SocketAddr>§redis_url: Option<String>§blob_dir: Option<PathBuf>Implementations§
Source§impl RelayServerBuilder
impl RelayServerBuilder
pub fn server_keypair(self, server_keypair: KeyPair) -> Self
pub fn address(self, address: SocketAddr) -> Self
pub fn redis_url(self, redis_url: String) -> Self
pub fn blob_dir(self, blob_dir: PathBuf) -> Self
async fn create_default_router( &self, ) -> Result<RelayServiceRouter, RelayServerBuilderError>
pub async fn build( self, ) -> Result<RelayServer<RelayServiceRouter>, RelayServerBuilderError>
pub async fn build_with_router<R: ServiceRouter + Send + Sync + 'static>( self, router: R, ) -> Result<RelayServer<R>, RelayServerBuilderError>
Trait Implementations§
Source§impl Default for RelayServerBuilder
impl Default for RelayServerBuilder
Source§fn default() -> RelayServerBuilder
fn default() -> RelayServerBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for RelayServerBuilder
impl RefUnwindSafe for RelayServerBuilder
impl Send for RelayServerBuilder
impl Sync for RelayServerBuilder
impl Unpin for RelayServerBuilder
impl UnwindSafe for RelayServerBuilder
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§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