pub struct EventSubscription {
pub event_name: Option<String>,
}
Expand description
Indicates the event name to subscribe to with a given event mode.
Fields§
§event_name: Option<String>
Trait Implementations§
Source§impl Clone for EventSubscription
impl Clone for EventSubscription
Source§fn clone(&self) -> EventSubscription
fn clone(&self) -> EventSubscription
Returns a copy 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 Debug for EventSubscription
impl Debug for EventSubscription
Source§impl Encodable for EventSubscription
impl Encodable for EventSubscription
Source§type Encoded = WireEventSubscription
type Encoded = WireEventSubscription
The wire type for the value.
§const COPY_OPTIMIZATION: CopyOptimization<Self> = _
const COPY_OPTIMIZATION: CopyOptimization<Self> = _
An optimization flag that allows the bytes of this type to be copied directly during
encoding instead of calling
encode
. Read moreSource§impl<___E> Encode<___E> for EventSubscriptionwhere
___E: Encoder + ?Sized,
impl<___E> Encode<___E> for EventSubscriptionwhere
___E: Encoder + ?Sized,
Source§impl TakeFrom<WireEventSubscription> for EventSubscription
impl TakeFrom<WireEventSubscription> for EventSubscription
Source§fn take_from(from: &WireEventSubscription) -> Self
fn take_from(from: &WireEventSubscription) -> Self
Converts from the given
T
, taking any resources that can’t be cloned.§const COPY_OPTIMIZATION: CopyOptimization<Self> = _
const COPY_OPTIMIZATION: CopyOptimization<Self> = _
An optimization flag that allows the bytes of this type to be copied directly during
conversion instead of calling
take_from
. Read moreAuto Trait Implementations§
impl Freeze for EventSubscription
impl RefUnwindSafe for EventSubscription
impl Send for EventSubscription
impl Sync for EventSubscription
impl Unpin for EventSubscription
impl UnwindSafe for EventSubscription
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