Struct tendermint_abci::ServerBuilder
source · pub struct ServerBuilder { /* private fields */ }
Expand description
Allows us to configure and construct an ABCI server.
Implementations§
source§impl ServerBuilder
impl ServerBuilder
sourcepub fn new(read_buf_size: usize) -> Self
pub fn new(read_buf_size: usize) -> Self
Builder constructor.
Allows you to specify the read buffer size used when reading chunks of incoming data from the client. This needs to be tuned for your application.
sourcepub fn bind<Addr, App>(self, addr: Addr, app: App) -> Result<Server<App>, Error>where
Addr: ToSocketAddrs,
App: Application,
pub fn bind<Addr, App>(self, addr: Addr, app: App) -> Result<Server<App>, Error>where
Addr: ToSocketAddrs,
App: Application,
Constructor for an ABCI server.
Binds the server to the given address. You must subsequently call the
Server::listen
method in order for incoming connections’ requests
to be routed to the specified ABCI application.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ServerBuilder
impl RefUnwindSafe for ServerBuilder
impl Send for ServerBuilder
impl Sync for ServerBuilder
impl Unpin for ServerBuilder
impl UnwindSafe for ServerBuilder
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