pub struct OneBotDriver { /* private fields */ }Implementations§
Source§impl OneBotDriver
impl OneBotDriver
pub fn new(config: OneBotDriverConfig) -> Self
Trait Implementations§
Source§impl Driver for OneBotDriver
impl Driver for OneBotDriver
fn event_channel<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Pin<Box<dyn Stream<Item = Result<DriverEvent, AnyError>> + Send>>, AnyError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn api_handler( &self, value: SendApi, ) -> Pin<Box<dyn Future<Output = Result<Result<ApiReturn, ApiReturn>, AnyError>> + Send>>
fn message_event_register(&self) -> MessageEventRegister
Auto Trait Implementations§
impl !RefUnwindSafe for OneBotDriver
impl !UnwindSafe for OneBotDriver
impl Freeze for OneBotDriver
impl Send for OneBotDriver
impl Sync for OneBotDriver
impl Unpin for OneBotDriver
impl UnsafeUnpin for OneBotDriver
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