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