pub struct UnixStreamBytes { /* private fields */ }Expand description
Non-blocking Unix stream. Implements StreamBytes for FramedStream.
Implementations§
Source§impl UnixStreamBytes
impl UnixStreamBytes
Sourcepub fn connect(path: &Path) -> Result<Self, QdnfError>
pub fn connect(path: &Path) -> Result<Self, QdnfError>
Child connects to a parent-exported filesystem path. Does not bind.
Sourcepub fn pair() -> Result<(Self, Self), QdnfError>
pub fn pair() -> Result<(Self, Self), QdnfError>
Same-process pair. Not two-OS-process evidence and not Windows evidence.
Sourcepub fn local_locator(&self) -> ObservedLocator
pub fn local_locator(&self) -> ObservedLocator
Local pid/uid locator. Not cryptographic identity.
Sourcepub fn peer_locator(&self) -> Result<ObservedLocator, QdnfError>
pub fn peer_locator(&self) -> Result<ObservedLocator, QdnfError>
Peer credentials from the kernel. Not a payload field.
Sourcepub fn into_framed(
self,
scope: ScopeEpoch,
mtu: u16,
) -> Result<FramedStream<Self>, QdnfError>
pub fn into_framed( self, scope: ScopeEpoch, mtu: u16, ) -> Result<FramedStream<Self>, QdnfError>
Wrap with adapter-observed locators. Profile stays BearerProfile::LocalIpcV1.
Sourcepub fn into_framed_with(
self,
local: ObservedLocator,
peer: ObservedLocator,
scope: ScopeEpoch,
mtu: u16,
) -> Result<FramedStream<Self>, QdnfError>
pub fn into_framed_with( self, local: ObservedLocator, peer: ObservedLocator, scope: ScopeEpoch, mtu: u16, ) -> Result<FramedStream<Self>, QdnfError>
Wrap with caller-supplied adapter locators. Never taken from framed bytes.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for UnixStreamBytes
impl RefUnwindSafe for UnixStreamBytes
impl Send for UnixStreamBytes
impl Sync for UnixStreamBytes
impl Unpin for UnixStreamBytes
impl UnsafeUnpin for UnixStreamBytes
impl UnwindSafe for UnixStreamBytes
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