[][src]Struct servant::Terminal

pub struct Terminal(_);

Methods

impl Terminal[src]

pub fn new(
    max_req_id: usize,
    receiver: Option<Box<dyn NotifyServant + Send>>
) -> Self
[src]

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]

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]

pub fn proxy_with_context<T, F>(&self, ctx: Context, name: &str, f: F) -> T where
    F: Fn(Context, &str, &Terminal) -> T, 
[src]

Trait Implementations

impl Clone for Terminal[src]

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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.