pub struct PushSender { /* private fields */ }Expand description
Typed, clonable handle for server-initiated push frames (SRV-013).
Handed to product code via Session::push_sender under
push = Enabled profiles. It wraps the connection’s writer channel and
forces id = PUSH_ID, so product code can never collide with request
ids. Clones stay valid for the connection’s lifetime — subscription
flows (a subscribe-style command) may emit long after the registering request
completed.
Implementations§
Source§impl PushSender
impl PushSender
Trait Implementations§
Source§impl Clone for PushSender
impl Clone for PushSender
Source§fn clone(&self) -> PushSender
fn clone(&self) -> PushSender
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for PushSender
impl RefUnwindSafe for PushSender
impl Send for PushSender
impl Sync for PushSender
impl Unpin for PushSender
impl UnsafeUnpin for PushSender
impl UnwindSafe for PushSender
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