pub struct FlowBotBuilder { /* private fields */ }Implementations§
Source§impl FlowBotBuilder
impl FlowBotBuilder
Sourcepub fn new(connection: ReverseConnectionConfig) -> Self
pub fn new(connection: ReverseConnectionConfig) -> Self
Create a new FlowBotBuilder with the given connection configuration.
Sourcepub fn with_state<S: 'static + Any + Send + Sync>(self, state: S) -> Self
pub fn with_state<S: 'static + Any + Send + Sync>(self, state: S) -> Self
Add a state to the bot. If the state of the same type is already present, it will be replaced.
Sourcepub fn with_handler<T, H>(self, handler: H) -> Self
pub fn with_handler<T, H>(self, handler: H) -> Self
Add a handler to the bot. The order of the handlers added is the order in which they will be called.
Sourcepub fn with_service<Svc>(self, service: Svc) -> Self
pub fn with_service<Svc>(self, service: Svc) -> Self
Add a service to the bot.
Auto Trait Implementations§
impl Freeze for FlowBotBuilder
impl !RefUnwindSafe for FlowBotBuilder
impl Send for FlowBotBuilder
impl Sync for FlowBotBuilder
impl Unpin for FlowBotBuilder
impl !UnwindSafe for FlowBotBuilder
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