pub trait RsdService: Sized {
// Required methods
fn rsd_service_name() -> Cow<'static, str>;
fn from_stream(
stream: Box<dyn ReadWrite>,
) -> impl Future<Output = Result<Self, IdeviceError>> + Send;
// Provided method
fn connect_rsd(
provider: &mut impl RsdProvider,
handshake: &mut RsdHandshake,
) -> impl Future<Output = Result<Self, IdeviceError>>
where Self: RsdService { ... }
}Required Methods§
fn rsd_service_name() -> Cow<'static, str>
fn from_stream( stream: Box<dyn ReadWrite>, ) -> impl Future<Output = Result<Self, IdeviceError>> + Send
Provided Methods§
fn connect_rsd(
provider: &mut impl RsdProvider,
handshake: &mut RsdHandshake,
) -> impl Future<Output = Result<Self, IdeviceError>>where
Self: RsdService,
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.