[][src]Struct vessels::core::hal::network::Server

pub struct Server(_);

Methods

impl Server[src]

pub fn new() -> Result<Server, UnimplementedError>[src]

pub fn listen<'a, K: Kind, T: Target<'a, K> + 'static, F: Format<Representation = Vec<u8>> + 'static>(
    &mut self,
    address: SocketAddr,
    handler: Box<dyn FnMut() -> Future<K> + Sync + Send>
) -> Fallible<(), ListenError> where
    T: ApplyEncode<'a>,
    <T as Sink<<T as Context<'a>>::Item>>::Error: Error + Sync + Send + 'static, 
[src]

Trait Implementations

impl Kind for Server[src]

type ConstructItem = _DERIVE_Items

The item transmitted over the network to the construction task from deconstruction. Read more

type ConstructError = Void

The failure condition of constructing a concrete type from communicated data.

type ConstructFuture = Future<ConstructResult<Self>>

The concrete future type returned by the construction process.

type DeconstructItem = ()

The item transmitted over the network from the construction task to deconstruction. Read more

type DeconstructError = Void

The failure condition of constructing a concrete type from communicated data.

type DeconstructFuture = Future<DeconstructResult<Self>>

The concrete future type returned by the deconstruction process. This is used to only to communicate failure of deconstruction and does not return a value. Read more

Auto Trait Implementations

impl Send for Server

impl Sync for Server

impl Unpin for Server

impl !UnwindSafe for Server

impl !RefUnwindSafe for Server

Blanket Implementations

impl<K> OnTo for K where
    K: Kind
[src]

impl<'de, U, K> ApplyDecode<'de, K> for U where
    K: Kind
[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Downcast for T where
    T: Any

impl<T> DowncastSync for T where
    T: Send + Sync + Any