Enum rxqlite_client::NetStream
source · pub enum NetStream {
Tls(FramedWrite<WriteHalf<TlsStream<TcpStream>>, LengthDelimitedCodec>, FramedRead<ReadHalf<TlsStream<TcpStream>>, LengthDelimitedCodec>),
Tcp(FramedWrite<WriteHalf<TcpStream>, LengthDelimitedCodec>, FramedRead<ReadHalf<TcpStream>, LengthDelimitedCodec>),
}Variants§
Tls(FramedWrite<WriteHalf<TlsStream<TcpStream>>, LengthDelimitedCodec>, FramedRead<ReadHalf<TlsStream<TcpStream>>, LengthDelimitedCodec>)
Tcp(FramedWrite<WriteHalf<TcpStream>, LengthDelimitedCodec>, FramedRead<ReadHalf<TcpStream>, LengthDelimitedCodec>)
Implementations§
source§impl NetStream
impl NetStream
pub async fn write( &mut self, notification_request: NotificationRequest ) -> Result<()>
pub async fn read(&mut self) -> Result<NotificationEvent>
pub async fn read_timeout( &mut self, timeout_duration: Duration ) -> Result<Option<NotificationEvent>>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for NetStream
impl RefUnwindSafe for NetStream
impl Send for NetStream
impl Sync for NetStream
impl Unpin for NetStream
impl UnwindSafe for NetStream
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