pub enum Tuning<'d, P = Owner<'d, Tuning>> {
Applied(Descriptor<'d>),
Pending(P),
}Expand description
Result of submitting a strongly ordered socket-tuning plan.
Variants§
Applied(Descriptor<'d>)
All options were applied synchronously.
Pending(P)
The descriptor and its exact completion/cancellation authority remain indivisible until the operation resolves.
Implementations§
Source§impl<'d> Tuning<'d>
impl<'d> Tuning<'d>
pub fn complete<'slot>( owner: Occupied<'slot, Owner<'d, Tuning>>, done: &Entry<Complete<'d>, Tuning, Result<u32, Errno>>, ) -> Result<(Occupied<'slot, Descriptor<'d>>, Result<(), Errno>), Occupied<'slot, Owner<'d, Tuning>>>
pub fn try_new<Tag: Tag + Select<Tuning>>( driver: &mut Local<'d>, slots: &Slots<'d, Tag>, target: Target<'d, Tag>, fd: Descriptor<'d>, opts: Set, ) -> Result<Self, Rejection<'d>>
Trait Implementations§
Source§impl<'d, P> From<((Descriptor<'d>, Invariant<'d>), Flight<'d, Tuning>, P)> for Tuning<'d, Owner<'d, Tuning, P>>
impl<'d, P> From<((Descriptor<'d>, Invariant<'d>), Flight<'d, Tuning>, P)> for Tuning<'d, Owner<'d, Tuning, P>>
Source§impl<'d> From<(Descriptor<'d>, Invariant<'d>)> for Tuning<'d>
impl<'d> From<(Descriptor<'d>, Invariant<'d>)> for Tuning<'d>
Source§fn from((fd, _): (Descriptor<'d>, Invariant<'d>)) -> Self
fn from((fd, _): (Descriptor<'d>, Invariant<'d>)) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<'d, P = Owner<'d, Tuning>> !RefUnwindSafe for Tuning<'d, P>
impl<'d, P = Owner<'d, Tuning>> !Send for Tuning<'d, P>
impl<'d, P = Owner<'d, Tuning>> !Sync for Tuning<'d, P>
impl<'d, P = Owner<'d, Tuning>> !UnwindSafe for Tuning<'d, P>
impl<'d, P> Forget for Tuning<'d, P>
impl<'d, P> Freeze for Tuning<'d, P>where
Root<'d, Shared<Context<Receive>>>: Freeze,
PhantomData<(fn(&'d ()) -> &'d (), ThreadBound)>: Freeze,
PhantomData<Active>: Freeze,
Identity<'d>: Freeze,
PhantomData<Open>: Freeze,
P: Freeze,
impl<'d, P> Move for Tuning<'d, P>
impl<'d, P> Unpin for Tuning<'d, P>
impl<'d, P> UnsafeUnpin for Tuning<'d, P>where
Root<'d, Shared<Context<Receive>>>: UnsafeUnpin,
PhantomData<(fn(&'d ()) -> &'d (), ThreadBound)>: UnsafeUnpin,
PhantomData<Active>: UnsafeUnpin,
Identity<'d>: UnsafeUnpin,
PhantomData<Open>: UnsafeUnpin,
P: UnsafeUnpin,
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