pub struct ServerBuilder<S> { /* private fields */ }Implementations§
Source§impl<S> ServerBuilder<S>
impl<S> ServerBuilder<S>
pub fn new(service: S) -> Self
Sourcepub fn add_protocol<F>(self, factory: F) -> Self
pub fn add_protocol<F>(self, factory: F) -> Self
Adds a protocol’s server task factory to the builder.
pub fn build(self) -> Result<ServerRunner, Error>
Auto Trait Implementations§
impl<S> Freeze for ServerBuilder<S>
impl<S> !RefUnwindSafe for ServerBuilder<S>
impl<S> Send for ServerBuilder<S>where
S: Send,
impl<S> !Sync for ServerBuilder<S>
impl<S> Unpin for ServerBuilder<S>
impl<S> !UnwindSafe for ServerBuilder<S>
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