sea-streamer-types 0.5.2

🌊 SeaStreamer Traits & Types
Documentation
1
2
3
4
5
6
7
8
9
10
use crate::StreamResult;
use std::time::Duration;

/// Common options when connecting to a streamer.
pub trait ConnectOptions: Default + Clone + Send {
    type Error: std::error::Error;

    fn timeout(&self) -> StreamResult<Duration, Self::Error>;
    fn set_timeout(&mut self, d: Duration) -> StreamResult<&mut Self, Self::Error>;
}