Skip to main content

Complete

Trait Complete 

Source
pub trait Complete: Sized {
    type Output;

    // Required methods
    fn opened(self, result: Result<OwnedFd, Errno>) -> Self::Output;
    fn write(self, result: Result<U32<0, { _ }>, Errno>) -> Self::Output;
    fn sync(self, result: Result<(), Errno>) -> Self::Output;
}
Expand description

Consumes completion authority with the exact native file result.

Required Associated Types§

Required Methods§

Source

fn opened(self, result: Result<OwnedFd, Errno>) -> Self::Output

Source

fn write(self, result: Result<U32<0, { _ }>, Errno>) -> Self::Output

Source

fn sync(self, result: Result<(), Errno>) -> Self::Output

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§