pub struct LeasedIpc { /* private fields */ }Implementations§
Source§impl LeasedIpc
impl LeasedIpc
Sourcepub fn from_endpoint(ep: IpcEndpoint) -> Self
pub fn from_endpoint(ep: IpcEndpoint) -> Self
Construct Ready from an existing connected endpoint.
Sourcepub fn send_leased(
&mut self,
leases: &mut LeaseTable,
dest: &ObservedLocator,
frame: &[u8],
) -> Result<usize, QdnfError>
pub fn send_leased( &mut self, leases: &mut LeaseTable, dest: &ObservedLocator, frame: &[u8], ) -> Result<usize, QdnfError>
Sends a leased IPC frame.
Sourcepub fn recv_leased(
&mut self,
leases: &mut LeaseTable,
out: &mut [u8],
) -> Result<(usize, RecvMeta), QdnfError>
pub fn recv_leased( &mut self, leases: &mut LeaseTable, out: &mut [u8], ) -> Result<(usize, RecvMeta), QdnfError>
Receives a leased IPC frame.
Sourcepub fn drain_and_shutdown(
&mut self,
inner_shutdown: bool,
) -> Result<(), QdnfError>
pub fn drain_and_shutdown( &mut self, inner_shutdown: bool, ) -> Result<(), QdnfError>
Drains the channel then shuts down; inner_shutdown controls the inner transport.
Sourcepub fn lifecycle(&self) -> &BearerLifecycle
pub fn lifecycle(&self) -> &BearerLifecycle
LeasedIpc::lifecycle.
Sourcepub fn locator(&self) -> ObservedLocator
pub fn locator(&self) -> ObservedLocator
Locator.
Auto Trait Implementations§
impl Freeze for LeasedIpc
impl RefUnwindSafe for LeasedIpc
impl Send for LeasedIpc
impl Sync for LeasedIpc
impl Unpin for LeasedIpc
impl UnsafeUnpin for LeasedIpc
impl UnwindSafe for LeasedIpc
Blanket Implementations§
§impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
Aggregate shares in an MPC protocol.
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more