Struct sequoia_ipc::Descriptor[][src]

pub struct Descriptor { /* fields omitted */ }

A descriptor is used to connect to a service.

Implementations

impl Descriptor[src]

pub fn new(
    ctx: &Context,
    rendezvous: PathBuf,
    executable: PathBuf,
    factory: HandlerFactory
) -> Self
[src]

Create a descriptor given its rendezvous point, the path to the servers executable file, and a handler factory.

pub fn context(&self) -> &Context[src]

Returns the context.

pub fn connect(&self) -> Result<RpcSystem<Side>>[src]

Connects to a descriptor, starting the server if necessary.

Panic

This will panic if called outside of the Tokio runtime context. See See Handle::enter for more details.

pub fn connect_with_policy(&self, policy: IPCPolicy) -> Result<RpcSystem<Side>>[src]

Connects to a descriptor, starting the server if necessary.

This function does not use the context’s IPC policy, but uses the given one.

Panic

This will panic if called outside of the Tokio runtime context. See See Handle::enter for more details.

Trait Implementations

impl Clone for Descriptor[src]

Auto Trait Implementations

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> DynClone for T where
    T: Clone
[src]

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

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

impl<T> Same<T> for T

type Output = T

Should always be Self

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,