pub struct NotifyOptions {
pub headers: Vec<Header>,
pub notify_id: Option<[u8; 16]>,
}Expand description
NotifyOptions carries optional metadata for a server-initiated push notification.
Pass this to Server::notify_with_options when you need to attach custom headers or
a stable notification identifier to the push message.
Fields§
§headers: Vec<Header>Custom headers to include in the notification message.
notify_id: Option<[u8; 16]>Optional 16-byte notification identifier.
When Some, the C library sets has_notify_id = 1 in the wire message so the
peer can deduplicate retransmitted notifications.
Auto Trait Implementations§
impl Freeze for NotifyOptions
impl RefUnwindSafe for NotifyOptions
impl Send for NotifyOptions
impl Sync for NotifyOptions
impl Unpin for NotifyOptions
impl UnsafeUnpin for NotifyOptions
impl UnwindSafe for NotifyOptions
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