pub struct Queryable { /* private fields */ }Expand description
A queryable endpoint — receives Interests and lets the application reply.
Implementations§
Source§impl Queryable
impl Queryable
Sourcepub async fn connect(
socket: impl AsRef<Path>,
prefix: impl Into<Name>,
) -> Result<Self, AppError>
pub async fn connect( socket: impl AsRef<Path>, prefix: impl Into<Name>, ) -> Result<Self, AppError>
Connect to an external router and register a prefix.
Sourcepub fn from_handle(handle: InProcHandle, prefix: Name) -> Self
pub fn from_handle(handle: InProcHandle, prefix: Name) -> Self
Create from an in-process InProcHandle (embedded engine).
Auto Trait Implementations§
impl !Freeze for Queryable
impl !RefUnwindSafe for Queryable
impl Send for Queryable
impl Sync for Queryable
impl Unpin for Queryable
impl !UnwindSafe for Queryable
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