Skip to main content

EndpointSet

Trait EndpointSet 

Source
pub trait EndpointSet:
    Sized
    + Send
    + 'static {
    // Required method
    fn item_types() -> (Option<TypeId>, Option<TypeId>);

    // Provided methods
    fn empty() -> Option<Self> { ... }
    fn bind_wire(
        _limits: WireStreamLimits,
    ) -> Result<(Self, WireStreams), ServingError> { ... }
    fn transferred(&self) -> bool { ... }
}

Required Methods§

Provided Methods§

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 EndpointSet for ()

Source§

impl<I, O> EndpointSet for (I, O)

Implementors§

Source§

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

Source§

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