Struct sequoia_ipc::Descriptor
source · pub struct Descriptor { /* private fields */ }Expand description
A descriptor is used to connect to a service.
Implementations
sourceimpl Descriptor
impl Descriptor
sourcepub fn new(
ctx: &Context,
rendezvous: PathBuf,
executable: PathBuf,
factory: HandlerFactory
) -> Self
pub fn new(
ctx: &Context,
rendezvous: PathBuf,
executable: PathBuf,
factory: HandlerFactory
) -> Self
Create a descriptor given its rendezvous point, the path to the servers executable file, and a handler factory.
sourcepub fn connect(&self) -> Result<RpcSystem<Side>>
pub fn connect(&self) -> Result<RpcSystem<Side>>
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.
sourcepub fn connect_with_policy(&self, policy: IPCPolicy) -> Result<RpcSystem<Side>>
pub fn connect_with_policy(&self, policy: IPCPolicy) -> Result<RpcSystem<Side>>
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
sourceimpl Clone for Descriptor
impl Clone for Descriptor
sourcefn clone(&self) -> Descriptor
fn clone(&self) -> Descriptor
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations
impl RefUnwindSafe for Descriptor
impl Send for Descriptor
impl Sync for Descriptor
impl Unpin for Descriptor
impl UnwindSafe for Descriptor
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more