pub struct StartSession { /* private fields */ }Expand description
A session being started from code. Configure, then .await.
Implementations§
Source§impl StartSession
impl StartSession
Sourcepub fn agent(self, name: impl Into<String>) -> Self
pub fn agent(self, name: impl Into<String>) -> Self
Run on this agent instead of the default one.
Sourcepub fn deliver_to(self, target: DeliveryTarget) -> Self
pub fn deliver_to(self, target: DeliveryTarget) -> Self
Deliver every reply of this session to a channel.
Trait Implementations§
Source§impl IntoFuture for StartSession
impl IntoFuture for StartSession
Source§type IntoFuture = Pin<Box<dyn Future<Output = Result<(), Error>> + Send>>
type IntoFuture = Pin<Box<dyn Future<Output = Result<(), Error>> + Send>>
Which kind of future are we turning this into?
Source§fn into_future(self) -> Self::IntoFuture
fn into_future(self) -> Self::IntoFuture
Creates a future from a value. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for StartSession
impl !UnwindSafe for StartSession
impl Freeze for StartSession
impl Send for StartSession
impl Sync for StartSession
impl Unpin for StartSession
impl UnsafeUnpin for StartSession
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