pub struct MultiClient { /* private fields */ }Expand description
A client that can be composed from multiple subclients to interact with all of them as one.
Implementations§
Source§impl MultiClient
impl MultiClient
Trait Implementations§
Source§impl BotClient for MultiClient
impl BotClient for MultiClient
Source§fn send(
&mut self,
bot_id: &BotId,
messages: &[Message],
tools: &[Tool],
) -> BoxPlatformSendStream<'static, ClientResult<MessageContent>>
fn send( &mut self, bot_id: &BotId, messages: &[Message], tools: &[Tool], ) -> BoxPlatformSendStream<'static, ClientResult<MessageContent>>
Send a message to a bot with support for streamed response. Read more
Source§fn clone_box(&self) -> Box<dyn BotClient>
fn clone_box(&self) -> Box<dyn BotClient>
Make a boxed dynamic clone of this client to pass around.
Source§fn bots(&self) -> BoxPlatformSendFuture<'static, ClientResult<Vec<Bot>>>
fn bots(&self) -> BoxPlatformSendFuture<'static, ClientResult<Vec<Bot>>>
Interrupt the bot’s current operation.
Bots available under this client.
Source§fn content_widget(
&mut self,
cx: &mut Cx,
previous_widget: WidgetRef,
templates: &HashMap<LiveId, LivePtr>,
content: &MessageContent,
) -> Option<WidgetRef>
fn content_widget( &mut self, cx: &mut Cx, previous_widget: WidgetRef, templates: &HashMap<LiveId, LivePtr>, content: &MessageContent, ) -> Option<WidgetRef>
Optionally override how the content of a message is rendered by Makepad. Read more
Source§impl Clone for MultiClient
impl Clone for MultiClient
Source§fn clone(&self) -> MultiClient
fn clone(&self) -> MultiClient
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for MultiClient
impl RefUnwindSafe for MultiClient
impl Send for MultiClient
impl Sync for MultiClient
impl Unpin for MultiClient
impl UnwindSafe for MultiClient
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