Skip to main content

Install

Struct Install 

Source
pub struct Install<'borrow, 'd> { /* private fields */ }

Implementations§

Source§

impl<'borrow, 'd> Install<'borrow, 'd>

Source

pub fn bind_unix( driver: &mut Local<'d>, addr: &Unix, depth: Backlog, ) -> Result<Descriptor<'d>, Error>

Binds a Unix listener without converting its address to an Internet address.

Source

pub fn bind_stream( driver: &mut Local<'d>, addr: SocketAddr, depth: Backlog, config: &Config, ) -> Result<(Descriptor<'d>, SocketAddr), Error>

Source

pub fn adopt_stream( driver: &mut Local<'d>, fd: OwnedFd, ) -> Result<(Descriptor<'d>, SocketAddr), Error>

Source

pub fn adopt_peer( driver: &mut Local<'d>, fd: OwnedFd, ) -> Result<Descriptor<'d>, Error>

Installs an owned connected Internet stream.

Source

pub fn adopt_bound( driver: &mut Local<'d>, listener: Listener, ) -> Result<(Descriptor<'d>, SocketAddr), Error>

Installs an owned listener without rechecking its established socket role.

Source

pub fn adopt_udp( driver: &mut Local<'d>, fd: OwnedFd, ) -> Result<(Datagram<'d>, SocketAddr), Error>

Source

pub fn adopt_routed<'g: 'd>( driver: &mut Local<'d>, socket: Lease<'g>, ) -> Result<(Datagram<'d>, SocketAddr), Error>

Installs a routed datagram lease with its established socket role.

Source

pub fn bind_udp( driver: &mut Local<'d>, addr: SocketAddr, config: Config, ) -> Result<(Datagram<'d>, SocketAddr), Error>

Auto Trait Implementations§

§

impl<'borrow, 'd> !RefUnwindSafe for Install<'borrow, 'd>

§

impl<'borrow, 'd> !Send for Install<'borrow, 'd>

§

impl<'borrow, 'd> !Sync for Install<'borrow, 'd>

§

impl<'borrow, 'd> !UnwindSafe for Install<'borrow, 'd>

§

impl<'borrow, 'd> Forget for Install<'borrow, 'd>

§

impl<'borrow, 'd> Freeze for Install<'borrow, 'd>
where &'borrow mut Local<'d>: Freeze, Root<'d, Shared<Context<Receive>>>: Freeze, PhantomData<(fn(&'d ()) -> &'d (), ThreadBound)>: Freeze, Solo<Identity<'d>>: Freeze, PhantomData<Open>: Freeze,

§

impl<'borrow, 'd> Move for Install<'borrow, 'd>

§

impl<'borrow, 'd> Unpin for Install<'borrow, 'd>
where &'borrow mut Local<'d>: Unpin, Root<'d, Shared<Context<Receive>>>: Unpin, *mut (): Unpin, Solo<Identity<'d>>: Unpin,

§

impl<'borrow, 'd> UnsafeUnpin for Install<'borrow, 'd>
where &'borrow mut Local<'d>: UnsafeUnpin, Root<'d, Shared<Context<Receive>>>: UnsafeUnpin, PhantomData<(fn(&'d ()) -> &'d (), ThreadBound)>: UnsafeUnpin, Solo<Identity<'d>>: UnsafeUnpin, PhantomData<Open>: UnsafeUnpin,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<L, R> Convert<Either<L, R>, 1> for L

Source§

fn into(self) -> Either<L, R>

Source§

unsafe fn take_into(source: *mut Self, place: &mut MaybeUninit<T>)
where Self: Sized,

Safety Read more
Source§

impl<L, R> Convert<Either<L, R>, 2> for R

Source§

fn into(self) -> Either<L, R>

Source§

unsafe fn take_into(source: *mut Self, place: &mut MaybeUninit<T>)
where Self: Sized,

Safety Read more
Source§

impl<T> Convert<T> for T

Source§

fn into(self) -> T

Source§

unsafe fn take_into(source: *mut Self, place: &mut MaybeUninit<T>)
where Self: Sized,

Safety Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.