1
0
mirror of https://github.com/fafhrd91/actix-net synced 2025-06-27 01:37:42 +02:00

deprecate ClonableService and FramedTransport

This commit is contained in:
Nikolay Kim
2019-07-17 10:57:52 +06:00
parent 411e31786f
commit 23a230a83b
4 changed files with 23 additions and 1 deletions

View File

@ -1,3 +1,4 @@
#![allow(deprecated)]
use std::marker::PhantomData;
use std::rc::Rc;
@ -6,6 +7,8 @@ use futures::Poll;
use super::cell::Cell;
#[doc(hidden)]
#[deprecated(since = "0.4.3", note = "support will be removed in actix-utils 0.4.5")]
/// Service that allows to turn non-clone service to a service with `Clone` impl
pub struct CloneableService<T> {
service: Cell<T>,

View File

@ -1,3 +1,4 @@
#![allow(deprecated)]
//! Framed dispatcher service and related utilities
use std::collections::VecDeque;
use std::{fmt, mem};
@ -14,6 +15,8 @@ use crate::cell::Cell;
type Request<U> = <U as Decoder>::Item;
type Response<U> = <U as Encoder>::Item;
#[doc(hidden)]
#[deprecated(since = "0.4.3", note = "support will be removed in actix-utils 0.4.5")]
/// Framed transport errors
pub enum FramedTransportError<E, U: Encoder + Decoder> {
Service(E),
@ -63,11 +66,18 @@ where
}
}
#[doc(hidden)]
#[deprecated(since = "0.4.3", note = "support will be removed in actix-utils 0.4.5")]
pub enum FramedMessage<T> {
Message(T),
Close,
}
#[doc(hidden)]
#[deprecated(
since = "0.4.3",
note = "please use `actix_ioframe` instead. support will be removed in actix-utils 0.4.5"
)]
/// FramedTransport - is a future that reads frames from Framed object
/// and pass then to the service.
pub struct FramedTransport<S, T, U>