[−][src]Struct servant::Terminal
Methods
impl Terminal
[src]
pub fn new(
max_req_id: usize,
receiver: Option<Box<dyn NotifyServant + Send>>
) -> Self
[src]
max_req_id: usize,
receiver: Option<Box<dyn NotifyServant + Send>>
) -> Self
pub async fn clean<'_>(&'_ self)
[src]
pub async fn report<'_>(&'_ self, oid: Oid, msg: Vec<u8>) -> ServantResult<()>
[src]
pub async fn invoke<'_>(
&'_ self,
ctx: Option<Context>,
oid: Option<Oid>,
req: Vec<u8>
) -> ServantResult<Vec<u8>>
[src]
&'_ self,
ctx: Option<Context>,
oid: Option<Oid>,
req: Vec<u8>
) -> ServantResult<Vec<u8>>
pub fn connect_to(self, addr: String) -> JoinHandle<()>
[src]
pub fn proxy<T, F>(&self, name: &str, f: F) -> T where
F: Fn(&str, &Terminal) -> T,
[src]
F: Fn(&str, &Terminal) -> T,
pub fn proxy_with_context<T, F>(&self, ctx: Context, name: &str, f: F) -> T where
F: Fn(Context, &str, &Terminal) -> T,
[src]
F: Fn(Context, &str, &Terminal) -> T,
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Terminal
impl Send for Terminal
impl Sync for Terminal
impl Unpin for Terminal
impl !UnwindSafe for Terminal
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,