pub struct Notify<'a> {
pub subscription_id: Cow<'a, str>,
pub send_resp: bool,
pub notification: OneOfnotification<'a>,
}
Fields§
§subscription_id: Cow<'a, str>
§send_resp: bool
§notification: OneOfnotification<'a>
Trait Implementations§
source§impl<'a> MessageRead<'a> for Notify<'a>
impl<'a> MessageRead<'a> for Notify<'a>
source§fn from_reader(r: &mut BytesReader, bytes: &'a [u8]) -> Result<Self>
fn from_reader(r: &mut BytesReader, bytes: &'a [u8]) -> Result<Self>
Constructs an instance of
Self
by reading from the given bytes
via the given reader. Read moresource§impl<'a> MessageWrite for Notify<'a>
impl<'a> MessageWrite for Notify<'a>
impl<'a> StructuralPartialEq for Notify<'a>
Auto Trait Implementations§
impl<'a> Freeze for Notify<'a>
impl<'a> RefUnwindSafe for Notify<'a>
impl<'a> Send for Notify<'a>
impl<'a> Sync for Notify<'a>
impl<'a> Unpin for Notify<'a>
impl<'a> UnwindSafe for Notify<'a>
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)