Skip to main content

WireEndpoints

Trait WireEndpoints 

Source
pub trait WireEndpoints: Sized + EndpointSet {
    // Required method
    fn bind(
        limits: WireStreamLimits,
    ) -> Result<(Self, WireStreams), ServingError>;

    // Provided method
    fn empty() -> Option<Self> { ... }
}

Required Methods§

Provided Methods§

Source

fn empty() -> Option<Self>

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementations on Foreign Types§

Source§

impl WireEndpoints for ()

Source§

impl<I, O, E> WireEndpoints for (StreamInput<I>, StreamOutput<O, E>)
where I: Message + MemorySize + Send + 'static, O: Message + MemorySize + Send + 'static, E: 'static,

Implementors§

Source§

impl<T, E> WireEndpoints for StreamOutput<T, E>
where T: Message + MemorySize + Send + 'static, E: 'static,

Source§

impl<T> WireEndpoints for StreamInput<T>
where T: Message + MemorySize + Send + 'static,