pub struct Builder<Services> { /* private fields */ }Expand description
A builder for Console.
Implementations§
Source§impl<Services> Builder<Services>
impl<Services> Builder<Services>
pub fn new() -> Self
pub fn subscribe<S>( self, service_id: Services, subscription: S, ) -> Result<Self, Error>
pub fn port(self, port: u16) -> Self
pub fn welcome(self, message: &str) -> Self
pub fn accept_only_localhost(self) -> Self
pub fn build(self) -> Result<Console<Services>, Error>
Trait Implementations§
Auto Trait Implementations§
impl<Services> Freeze for Builder<Services>
impl<Services> !RefUnwindSafe for Builder<Services>
impl<Services> Send for Builder<Services>where
Services: Send,
impl<Services> Sync for Builder<Services>where
Services: Sync,
impl<Services> Unpin for Builder<Services>where
Services: Unpin,
impl<Services> !UnwindSafe for Builder<Services>
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