pub struct Session { /* private fields */ }Implementations§
Source§impl Session
impl Session
pub fn profile_conflict(&self, key: &str, supplied: &Config) -> bool
pub fn bind_profile( &mut self, key: impl Into<String>, profile: Arc<Config>, ) -> Result<Arc<Config>, Error>
pub fn bound_profile(&self, key: &str) -> Option<Arc<Config>>
pub fn remove_profile(&mut self, key: &str) -> Option<Arc<Config>>
pub fn begin_start( &mut self, key: impl Into<String>, supplied: Arc<Config>, events: EventSink, ) -> Result<u64, Error>
pub fn profiled_turn_start( &self, key: &str, thread: &str, input: impl Into<String>, ) -> Result<Value, Error>
pub fn active_serial(&self, key: &str) -> Option<u64>
pub fn active_scope(&self, key: &str) -> Option<ActiveScope>
pub fn thread(&self, key: &str) -> Option<&str>
pub fn owner(&self, thread: &str) -> Option<&str>
pub fn set_thread( &mut self, key: &str, thread: impl Into<String>, ) -> Result<(), Error>
pub fn set_native_turn( &mut self, key: &str, serial: u64, turn: impl Into<String>, ) -> Option<Vec<Value>>
pub fn buffer_early( &mut self, key: &str, serial: u64, message: Value, ) -> Result<bool, Error>
pub fn record_failure(&mut self, key: &str, serial: u64, failure: Value) -> bool
pub fn emit(&self, key: &str, serial: u64, event: Event) -> bool
pub fn cancel_active(&mut self, key: &str, serial: u64) -> Option<EventSink>
pub fn take_active(&mut self, key: &str, serial: u64) -> Option<ActiveTurn>
pub fn take_sinks(&mut self) -> Vec<EventSink> ⓘ
pub fn start_pending(&self, key: &str) -> bool
pub fn steer_pending(&self, key: &str, serial: u64) -> bool
pub fn begin_steer( &mut self, key: &str, supplied: &Config, input: impl Into<String>, reply: &mut PendingReply, ) -> Result<RegisteredRequest, Error>
pub fn register_request( &mut self, method: impl Into<String>, params: Value, pending: Pending<PendingReply>, ) -> Result<RegisteredRequest, Error>
pub fn take_pending(&mut self, id: u64) -> Result<Pending<PendingReply>, Error>
pub fn begin_close(&mut self, key: &str) -> Result<Option<String>, Error>
pub fn cancel_close(&mut self, key: &str)
pub fn finish_close(&mut self, key: &str, thread: &str) -> Result<(), Error>
pub fn interrupt_target( &mut self, key: &str, serial: u64, ) -> Option<(String, String)>
pub fn track_tool( &mut self, key: &str, serial: u64, call: impl Into<String>, id: &Value, ) -> Result<ToolToken, Error>
pub fn take_tool(&mut self, token: &ToolToken) -> Option<PendingTool>
pub fn take_all_tools(&mut self) -> Vec<PendingTool>
pub fn take_turn_tools( &mut self, key: &str, serial: u64, ) -> Vec<(ToolToken, PendingTool)>
pub fn resolve_tool(&mut self, id: &Value) -> Result<Option<ToolToken>, Error>
pub fn rpc_id_in_use(&self, id: &Value) -> Result<bool, Error>
pub fn hold_completion( &mut self, key: &str, serial: u64, completed: TurnCompleted, ) -> Result<(), Error>
pub fn take_held_completion( &mut self, key: &str, serial: u64, ) -> Option<TurnCompleted>
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Session
impl !UnwindSafe for Session
impl Freeze for Session
impl Send for Session
impl Sync for Session
impl Unpin for Session
impl UnsafeUnpin for Session
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