Struct bolic_network::hub::peer::HubBuilderWithDriver
source · pub struct HubBuilderWithDriver<I: ID + Serialize + DeserializeOwned, H: Handshake<I>> { /* private fields */ }Implementations§
source§impl<I: ID + Serialize + DeserializeOwned, H: Handshake<I>> HubBuilderWithDriver<I, H>
impl<I: ID + Serialize + DeserializeOwned, H: Handshake<I>> HubBuilderWithDriver<I, H>
pub fn config(self, config: Config) -> Self
pub fn retry_delay(self, delay: Range<Duration>) -> Self
pub fn tcp<A: AccessControl<I>>( self, bind_addr: Option<&str>, access_control: A ) -> Result<Self>
pub fn udp<A: AccessControl<I>>( self, bind_addr: Option<&str>, access_control: A ) -> Result<Self>
pub fn websocket<A: AccessControl<I>>( self, bind_addr: Option<&str>, access_control: A ) -> Result<Self>
pub fn build(self) -> Result<Hub<I>>
Auto Trait Implementations§
impl<I, H> Freeze for HubBuilderWithDriver<I, H>where
I: Freeze,
impl<I, H> !RefUnwindSafe for HubBuilderWithDriver<I, H>
impl<I, H> Send for HubBuilderWithDriver<I, H>
impl<I, H> Sync for HubBuilderWithDriver<I, H>where
H: Sync,
impl<I, H> Unpin for HubBuilderWithDriver<I, H>
impl<I, H> !UnwindSafe for HubBuilderWithDriver<I, H>
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