pub struct AirPlaySourceAdvertisement;Expand description
AirPlay source message https://github.com/furiousMAC/continuity/blob/master/messages/airplay_source.md
Trait Implementations§
Source§impl Advertisable<AirPlaySourceAdvertisementData> for AirPlaySourceAdvertisement
impl Advertisable<AirPlaySourceAdvertisementData> for AirPlaySourceAdvertisement
Source§fn assemble_advertisement(
session: &mut Session,
user_data: &AirPlaySourceAdvertisementData,
) -> Result<Advertisement, Box<dyn Error>>
fn assemble_advertisement( session: &mut Session, user_data: &AirPlaySourceAdvertisementData, ) -> Result<Advertisement, Box<dyn Error>>
The user_data field can be ignored.
Source§fn validate_user_data(_user_data: &T) -> Result<(), Box<dyn Error>>
fn validate_user_data(_user_data: &T) -> Result<(), Box<dyn Error>>
Advertisement-specific: validate user supplied data.
Source§fn register<'life0, 'life1, 'async_trait>(
session: &'life0 mut Session,
user_data: &'life1 T,
) -> Pin<Box<dyn Future<Output = Result<AdvertisementHandle, Box<dyn Error>>> + Send + 'async_trait>>where
Self: Send + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn register<'life0, 'life1, 'async_trait>(
session: &'life0 mut Session,
user_data: &'life1 T,
) -> Pin<Box<dyn Future<Output = Result<AdvertisementHandle, Box<dyn Error>>> + Send + 'async_trait>>where
Self: Send + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Register any advertisement.
Auto Trait Implementations§
impl Freeze for AirPlaySourceAdvertisement
impl RefUnwindSafe for AirPlaySourceAdvertisement
impl Send for AirPlaySourceAdvertisement
impl Sync for AirPlaySourceAdvertisement
impl Unpin for AirPlaySourceAdvertisement
impl UnwindSafe for AirPlaySourceAdvertisement
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more