pub struct Terminal(/* private fields */);
Implementations§
Source§impl Terminal
impl Terminal
pub fn new( max_req_id: usize, receiver: Option<Box<dyn NotifyServant + Send>>, ) -> Self
pub async fn clean(&self)
pub async fn report(&self, oid: Oid, msg: Vec<u8>) -> ServantResult<()>
pub async fn invoke( &self, ctx: Option<Context>, oid: Option<Oid>, req: Vec<u8>, ) -> ServantResult<Vec<u8>>
pub fn connect_to(self, addr: String) -> JoinHandle<()>
pub fn proxy<T, F>(&self, name: &str, f: F) -> T
pub fn proxy_with_context<T, F>(&self, ctx: Context, name: &str, f: F) -> T
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Terminal
impl !RefUnwindSafe for Terminal
impl Send for Terminal
impl Sync for Terminal
impl Unpin for Terminal
impl !UnwindSafe for Terminal
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