Enum selium_server::topic::pubsub::Socket
source · pub enum Socket<T, E> {
Stream(BoxStream<'static, Result<T>>),
Sink(Pin<Box<dyn Sink<T, Error = E> + Send>>),
}Variants§
Auto Trait Implementations§
impl<T, E> !RefUnwindSafe for Socket<T, E>
impl<T, E> Send for Socket<T, E>
impl<T, E> !Sync for Socket<T, E>
impl<T, E> Unpin for Socket<T, E>
impl<T, E> !UnwindSafe for Socket<T, E>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more