pub struct SeatData {
pub name: Option<String>,
pub device: Option<Device>,
pub offer: Option<Offer>,
pub primary_offer: Option<Offer>,
}Fields§
§name: Option<String>The name of this seat, if any.
device: Option<Device>The data device of this seat, if any.
offer: Option<Offer>The data offer of this seat, if any.
primary_offer: Option<Offer>The primary-selection data offer of this seat, if any.
Implementations§
Source§impl SeatData
impl SeatData
Sourcepub fn set_device(&mut self, device: Option<Device>)
pub fn set_device(&mut self, device: Option<Device>)
Sets this seat’s device.
Destroys the old one, if any.
Sourcepub fn set_offer(&mut self, new_offer: Option<Offer>)
pub fn set_offer(&mut self, new_offer: Option<Offer>)
Sets this seat’s data offer.
Destroys the old one, if any.
Sourcepub fn set_primary_offer(&mut self, new_offer: Option<Offer>)
pub fn set_primary_offer(&mut self, new_offer: Option<Offer>)
Sets this seat’s primary-selection data offer.
Destroys the old one, if any.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SeatData
impl !RefUnwindSafe for SeatData
impl Send for SeatData
impl Sync for SeatData
impl Unpin for SeatData
impl UnsafeUnpin for SeatData
impl !UnwindSafe for SeatData
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> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.