pub enum Bound<L> {
Won(L),
AlreadyRunning,
}Expand description
The outcome of trying to own an endpoint. Busy is ownership evidence, never application readiness proof.
Shared across platforms because the outcome has the same shape everywhere.
BindError deliberately is not: a Unix socket can fail to prepare its parent
directory or to unlink a proven stale inode, and a named pipe has neither.
Variants§
Won(L)
The caller owns this listener.
AlreadyRunning
A listener or another serialized binder already owns the endpoint.
Trait Implementations§
Auto Trait Implementations§
impl<L> Freeze for Bound<L>where
L: Freeze,
impl<L> RefUnwindSafe for Bound<L>where
L: RefUnwindSafe,
impl<L> Send for Bound<L>where
L: Send,
impl<L> Sync for Bound<L>where
L: Sync,
impl<L> Unpin for Bound<L>where
L: Unpin,
impl<L> UnsafeUnpin for Bound<L>where
L: UnsafeUnpin,
impl<L> UnwindSafe for Bound<L>where
L: UnwindSafe,
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