pub struct Document(/* private fields */);Implementations§
Source§impl Document
impl Document
pub fn session_id(&self) -> &str
pub fn open_result(&self) -> &DocOpenResult
pub fn api(&self) -> DocApi<'_, Self>
pub async fn close( &self, params: &DocCloseBoundParams, ) -> Result<DocCloseResult>
pub async fn replace_file( &self, path: impl AsRef<Path>, options: InvokeOptions, ) -> Result<Value>
Sourcepub async fn replace_bytes(
&self,
bytes: &[u8],
options: InvokeOptions,
) -> Result<Value>
pub async fn replace_bytes( &self, bytes: &[u8], options: InvokeOptions, ) -> Result<Value>
The transport owns staged bytes until the native reply or confirmed exit, including when the caller drops this future after transmission.
pub async fn dispatch_tool( &self, name: &str, args: Value, options: InvokeOptions, ) -> Result<Value>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Document
impl RefUnwindSafe for Document
impl Send for Document
impl Sync for Document
impl Unpin for Document
impl UnsafeUnpin for Document
impl UnwindSafe for Document
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