pub struct AirPlayTargetAdvertisementData {
pub ip_address: Ipv4Addr,
}Expand description
Data for an AirPlay target message
Fields§
§ip_address: Ipv4AddrTrait Implementations§
Source§impl Advertisable<AirPlayTargetAdvertisementData> for AirPlayTargetAdvertisement
impl Advertisable<AirPlayTargetAdvertisementData> for AirPlayTargetAdvertisement
Source§fn assemble_advertisement(
session: &mut Session,
user_data: &AirPlayTargetAdvertisementData,
) -> Result<Advertisement, Box<dyn Error>>
fn assemble_advertisement( session: &mut Session, user_data: &AirPlayTargetAdvertisementData, ) -> Result<Advertisement, Box<dyn Error>>
Advertisement-specific: assemble user supplied data to advertisement.
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.
Source§impl Clone for AirPlayTargetAdvertisementData
impl Clone for AirPlayTargetAdvertisementData
Source§fn clone(&self) -> AirPlayTargetAdvertisementData
fn clone(&self) -> AirPlayTargetAdvertisementData
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl PartialEq for AirPlayTargetAdvertisementData
impl PartialEq for AirPlayTargetAdvertisementData
Source§fn eq(&self, other: &AirPlayTargetAdvertisementData) -> bool
fn eq(&self, other: &AirPlayTargetAdvertisementData) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for AirPlayTargetAdvertisementData
Auto Trait Implementations§
impl Freeze for AirPlayTargetAdvertisementData
impl RefUnwindSafe for AirPlayTargetAdvertisementData
impl Send for AirPlayTargetAdvertisementData
impl Sync for AirPlayTargetAdvertisementData
impl Unpin for AirPlayTargetAdvertisementData
impl UnwindSafe for AirPlayTargetAdvertisementData
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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